pthread_cond_wait(¶ms->writer_cond,¶ms->writer_mutex);// They are called with mutex locked by the calling thread or undefined behaviour will result.
(!params->write_waits_sig[1-this_thread_index]&&!params->write_go[this_thread_index])// other write thread is not waiting, not already set go
)&&!params->exit_write_threads){
((i=get_num_busy(params))>0))// one-by-one
// || (!params->write_waits_sig[1 - this_thread_index] && !params->write_go[this_thread_index]) // other write thread is not waiting, not already set go
pthread_cond_wait(¶ms->writer_cond,¶ms->writer_mutex);// They are called with mutex locked by the calling thread or undefined behaviour will result.