Function: get_context
C Prototype |
aclError aclrtGetCurrentContext(aclrtContext *context) |
|---|---|
Python Function |
context, ret = acl.rt.get_context() |
Function Usage |
Obtains the context of a thread. |
Input Description |
None |
Return Value |
context: int, pointer address of the created context object. ret: int, error code.
|
Restrictions |
If you call acl.rt.set_context multiple times to set the context of the current thread, the context set last time is obtained. |
Parent topic: Context Management