[][src]Function ittapi_rs::__itt_model_lock_acquire

pub unsafe extern "C" fn __itt_model_lock_acquire(lock: *mut c_void)

@brief ANNOTATE_LOCK_ACQUIRE/ANNOTATE_LOCK_RELEASE support

lock_acquire/release model a potential lock for both lockset and performance modeling. Each unique address is modeled as a separate lock, with invalid addresses being valid lock IDs. Specifically: no storage is accessed by the API at the specified address - it is only used for lock identification. Lock acquires may be self-nested and are unlocked by a corresponding number of releases. (These closely correspond to __itt_sync_acquired/__itt_sync_releasing, but may not have identical semantics.)