comparison BlockingQueue.c @ 12:3134d8a1e8e3

added pushPrivQ -- treats Q as stack, pushed elem is first out
author SeanHalle
date Thu, 11 Nov 2010 04:19:01 -0800
parents 88efea74818a
children 1e93e5dbeda1
comparison
equal deleted inserted replaced
6:a1517ee85a66 7:97424a8d98da
293 //Q is empty 293 //Q is empty
294 tries++; 294 tries++;
295 if( tries > 10 ) return NULL; //long enough for writer to finish 295 if( tries > 10 ) return NULL; //long enough for writer to finish
296 } 296 }
297 } 297 }
298
299 298
300 void writeSRSWQ( void * in, SRSWQueueStruc* Q ) 299 void writeSRSWQ( void * in, SRSWQueueStruc* Q )
301 { 300 {
302 int tries = 0; 301 int tries = 0;
303 302