![]() | InDesign SDK 20.5 |
#include <IExecutionContext.h>
Public Member Functions | |
| virtual | ~IExecutionContext () |
| virtual ISession * | GetSession () const =0 |
| virtual IErrorState * | GetErrorState () const =0 |
| virtual IObjectModel * | GetObjectModel () const =0 |
| virtual IDTask * | GetCurrentTask () const =0 |
The execution context wraps together necessary components for the execution of threads. All threads in a thread domain share the same execution context (they are not preemptive against each other so they can share an EC).
An IExecutionContext ptr is NOT a reference to a standard boss object. It is a virtual C++ class, but does not inherit from IPMUnknown. IExecutionContext member function GetSession() replaces gSession global object. This was necessary because of the added support for multi-threading.
| inlinevirtual |
Destructor of the execution context.
| pure virtual |
Returns the task information for the current task that uses this execution context. The pointer is valid only in the current execution context and should not be stored.
| pure virtual |
Retrieves the current error state for the calling thread. Each thread keeps its own "global" error code (it is a thread specific variable).
| pure virtual |
Returns a non addref-ed pointer to the IObjectModel instance for the current thread.