comparison src/recpt1.c @ 125:e413158cae13

Add ushare project files.
author naoyan@johnstown.minaminoshima.org
date Sun, 03 Oct 2010 11:35:19 +0900
parents 9c7bc6c0327e
children 5dcaf3785ebe
comparison
equal deleted inserted replaced
124:9c7bc6c0327e 125:e413158cae13
192 return p_queue; 192 return p_queue;
193 } 193 }
194 194
195 void 195 void
196 destroy_queue(QUEUE_T *p_queue) 196 destroy_queue(QUEUE_T *p_queue)
197 {
198 if(!p_queue)
199 return;
200
201 pthread_mutex_destroy(&p_queue->mutex);
202 pthread_cond_destroy(&p_queue->cond_avail);
203 pthread_cond_destroy(&p_queue->cond_used);
204 free(p_queue);
205 }
206
207 void
208 destroy_stream_queue(STREAM_QUEUE_T *p_queue)
197 { 209 {
198 if(!p_queue) 210 if(!p_queue)
199 return; 211 return;
200 212
201 pthread_mutex_destroy(&p_queue->mutex); 213 pthread_mutex_destroy(&p_queue->mutex);