Synchronization endpoint
This endpoint is intended for working with futexes.
Information about methods of the endpoint is provided in the table below.
Methods of the sync.Sync endpoint (kl.core.Sync interface)
Method
|
Method purpose and parameters
|
Potential danger of the method
|
Wait
|
Purpose
Locks execution of the current thread if the futex value is equal to the expected value.
Parameters
- [in]
ptr – pointer to the futex. - [in]
val – expected value of the futex. - [in]
delay – maximum lockout duration in milliseconds. - [out]
outDelay – actual lockout duration in milliseconds. - [out]
rc – return code.
|
N/A
|
Wake
|
Purpose
Resumes execution of threads that were blocked by a Wait method call with the defined futex.
Parameters
- [in]
ptr – pointer to the futex. - [in]
nThreads – maximum number of threads whose execution can be resumed. - [out]
wokenCnt – actual number of threads whose execution was resumed. - [out]
rc – return code.
|
N/A
|
Page top