Mercurial > cgi-bin > hgwebdir.cgi > VMS > C_Libraries > Queue_impl
comparison BlockingQueue.c @ 14:447e97a52426
added zeroing out private queue when created
| author | Me |
|---|---|
| date | Thu, 04 Nov 2010 17:56:08 -0700 |
| 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 |
