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
pthread_cond_wait(¶ms->writer_cond,¶ms->writer_mutex);// They are called with mutex locked by the calling thread or undefined behaviour will result.
pthread_cond_wait(¶ms->writer_cond,¶ms->writer_mutex);// They are called with mutex locked by the calling thread or undefined behaviour will result.