4.2. nanos6_get_current_blocking_contextΒΆ

The nanos6_get_current_blocking_context returns an opaque pointer that is used for blocking and unblocking the current task.

C/C++ format:

void *nanos6_get_current_blocking_context();

The underlying implementation may or may not return the same value for repeated calls to this function.

Once the handler has been used once in a call to nanos6_block_current_task and a call to nanos6_unblock_task, the handler is discarded and a new one must be obtained to perform another cycle of blocking and unblocking.