Memory ordering in pthread_mutex_{,timed}lock.
All commits should have happened before the mutex lock is taken. Therefore use the _rel variant of the cmpxchg atomic op.
Loading
Please register or sign in to comment
All commits should have happened before the mutex lock is taken. Therefore use the _rel variant of the cmpxchg atomic op.