if( !RING_FAST ) { // compiler should drop the conditional when always false
if( (r = (ring_t*) vr) == NULL ) {
if( !RING_FAST ) { // compiler should drop the conditional when always false
if( (r = (ring_t*) vr) == NULL ) {
write( r->pfd, &inc, sizeof( inc ) );
/*
future -- investigate if it's possible only to set/clear when empty or going to empty
write( r->pfd, &inc, sizeof( inc ) );
/*
future -- investigate if it's possible only to set/clear when empty or going to empty
if( r->wgate != NULL ) { // if lock exists we must unlock before going
pthread_mutex_unlock( r->wgate );
}
if( r->wgate != NULL ) { // if lock exists we must unlock before going
pthread_mutex_unlock( r->wgate );
}