-
- Downloads
sched: reduce the size of a mutex
Pack the mutex by placing small fields next to each other. This fixes sizeof(cond_var) becoming larger than sizeof(pthread_cond_t), and corrupting memory.
Please register or sign in to comment
Pack the mutex by placing small fields next to each other. This fixes sizeof(cond_var) becoming larger than sizeof(pthread_cond_t), and corrupting memory.