aclrtSnapShotProcessUnlock
Note: This API is for trial use and may be changed in later versions. It is not available in production environments.
Applicable Products
Product |
Supported |
|---|---|
√ |
|
☓ |
|
√ |
|
√ |
|
X |
|
X |
|
X |
Function
Unlocks the current process on the device and unblocks runtime API calls.
Before calling this API, ensure that the current process is in the LOCKED or BACKED_UP state. After this API is called, the current process will transition to the RUNNING state.
Prototype
1 | aclError aclrtSnapShotProcessUnlock(int pid, void* reserve) |
Parameters
Parameter |
Input/Output |
Description |
|---|---|---|
pid |
Input |
Process ID. Only the ID of the current process can be passed. Cross-process operation is not supported. |
reserve |
Input |
Reserved parameter. Only NULL is supported currently. |
Returns
0 on success; otherwise, failure. For details, see aclError.