pub unsafe extern "C" fn swift_swift_task_enterThreadLocalContext(
state: *mut c_char,
)
Expand description
Called when a task inits, resumes and returns control to caller synchronous code to update any exclusivity specific state associated with the task.
State is assumed to point to a buffer of memory with swift_task_threadLocalContextSize bytes that was initialized with swift_task_initThreadLocalContext.
We describe the algorithm in detail on SwiftTaskThreadLocalContext in Exclusivity.cpp.