search for: write_cond

Displaying 2 results from an estimated 2 matches for "write_cond".

Did you mean: write_cons
2002 Jan 18
1
ogg123 1.0rc3 thread issue
...8,9 +88,11 @@ /* Cleanup thread data structures */ pthread_mutex_unlock(&buf->mutex); +#if 0 /* KLUDGE: disabling this keeps ogg123 from crashing */ pthread_mutex_destroy(&buf->mutex); pthread_cond_destroy(&buf->playback_cond); pthread_cond_destroy(&buf->write_cond); +#endif } <p> -- Christian "naddy" Weisgerber naddy@mips.inka.de --- >8 ---- List archives: http://www.xiph.org/archives/ Ogg project homepage: http://www.xiph.org/ogg/ To unsubscribe from this list, send a message to 'vorbis-dev-request@xiph.o...
2006 Jan 27
0
patch for bugs in vorbis-tools-1.1.1
...if (audio_buffer) buffer_submit_data(audio_buffer, convbuffer, ret); else audio_play_callback(convbuffer, ret, eos, &audio_play_arg); nthc = options.nth - 1; } , the code gets into buffer_submit_data that will wait on buf->write_cond that is never signalled because the buffer thread has just exited. The race is heavily dependent on thread scheduling and on some OSes it might happen very rarely or not at all. I solved it by disabling sig_request.cancel, I think it is not needed at all, because buffer thread is reliably ended...