-
- Downloads
mutex: improve compatibility with pthread_mutex_t initializers
pthread_mutex_t has a 32-bit field, __kind, at offset 16. Non-standard static initializers set this field to a nonzero value, which can corrupt fields in our implementation. Rearrange field layout so we have a hole in that position. To keep the structure size small enough so that condvar will still fit in pthread_condvar_t, we need to change the size of the _depth field to 16 bits.
Please register or sign in to comment