diff options
| author | Sheikh Dawood Abdul Ajees <[email protected]> | 2017-04-25 16:02:08 -0500 |
|---|---|---|
| committer | Sheikh Dawood Abdul Ajees <[email protected]> | 2017-04-25 16:02:08 -0500 |
| commit | d11708e398c2f6377d9eac2b1f7248c62faab569 (patch) | |
| tree | 5778e794690c046ab4b0205d8f764960a5af168b /PhysX_3.4/Source/Common/src/CmTask.h | |
| parent | PhysX 3.4, APEX 1.4 patch release @21821222 (diff) | |
| download | physx-3.4-d11708e398c2f6377d9eac2b1f7248c62faab569.tar.xz physx-3.4-d11708e398c2f6377d9eac2b1f7248c62faab569.zip | |
PhysX 3.4, APEX 1.4 patch release @22017166
Diffstat (limited to 'PhysX_3.4/Source/Common/src/CmTask.h')
| -rw-r--r-- | PhysX_3.4/Source/Common/src/CmTask.h | 13 |
1 files changed, 8 insertions, 5 deletions
diff --git a/PhysX_3.4/Source/Common/src/CmTask.h b/PhysX_3.4/Source/Common/src/CmTask.h index 11088a13..6cb11f19 100644 --- a/PhysX_3.4/Source/Common/src/CmTask.h +++ b/PhysX_3.4/Source/Common/src/CmTask.h @@ -51,6 +51,10 @@ namespace Cm class Task : public physx::PxLightCpuTask { public: + Task(PxU64 contextId) + { + mContextID = contextId; + } virtual void run() { @@ -89,8 +93,7 @@ namespace Cm { public: - DelegateTask(T* obj, const char* name) : - mObj(obj), mName(name) { } + DelegateTask(PxU64 contextID, T* obj, const char* name) : Cm::Task(contextID), mObj(obj), mName(name) { } virtual void runInternal() { @@ -122,7 +125,7 @@ namespace Cm { PX_NOCOPY(FanoutTask) public: - FanoutTask(const char* name) : Cm::BaseTask(), mRefCount(0), mName(name), mNotifySubmission(false) {} + FanoutTask(PxU64 contextID, const char* name) : Cm::BaseTask(), mRefCount(0), mName(name), mNotifySubmission(false) { mContextID = contextID; } virtual void runInternal() {} @@ -243,8 +246,8 @@ namespace Cm { public: - DelegateFanoutTask(T* obj, const char* name) : - FanoutTask(name), mObj(obj) { } + DelegateFanoutTask(PxU64 contextID, T* obj, const char* name) : + FanoutTask(contextID, name), mObj(obj) { } virtual void runInternal() { |