ThreadingDebuggingTools.h File Reference

ThreadingDebuggingTools.h File Reference
#include "utilexp.h"

Classes

class  WorkerThreadSet
 A class to help control the setting of the worker thread. More...
 

Namespaces

 MaxSDK
 This API is used to support OLE structured storage streams containing user specified string data in 3ds Max scene files or other OLE Structured Storage based files.
 
 MaxSDK::ThreadingDebuggingTools
 The functions in this namespace are provided to assist in debugging operations performed on a worker thread.
 

Functions

UtilExport bool IsInMainThread ()
 Returns true if in main thread. More...
 
UtilExport void SetWorkerThread (DWORD threadID=(DWORD)-1)
 Sets the worker thread id to use for testing in IsExclusivelyInMainOrWorkerThread function. More...
 
UtilExport DWORD GetWorkerThread ()
 Returns the worker thread id set via SetWorkerThread. More...
 
UtilExport void ClearWorkerThread ()
 Clears the worker thread id value. More...
 
UtilExport bool IsExclusivelyInMainOrWorkerThread ()
 Returns true if (a) the worker thread id is not set and in main thread, or (b) the worker thread id is set and in that thread. More...
 
UtilExport void Disable ()
 Disables checking. More...