Mercurial > hg > freeDiameter
comparison libfreeDiameter/fifo.c @ 451:4395961aad27
Some libc seem to have an issue with canceled threads...
author | Sebastien Decugis <sdecugis@nict.go.jp> |
---|---|
date | Thu, 29 Jul 2010 14:37:33 +0900 |
parents | f6e85a0694eb |
children |
comparison
equal
deleted
inserted
replaced
450:f6e85a0694eb | 451:4395961aad27 |
---|---|
175 ASSERT(FD_IS_LIST_EMPTY(&q->list)); | 175 ASSERT(FD_IS_LIST_EMPTY(&q->list)); |
176 | 176 |
177 /* And destroy it */ | 177 /* And destroy it */ |
178 CHECK_POSIX( pthread_mutex_unlock( &q->mtx ) ); | 178 CHECK_POSIX( pthread_mutex_unlock( &q->mtx ) ); |
179 | 179 |
180 CHECK_POSIX( pthread_cond_destroy( &q->cond ) ); | 180 CHECK_POSIX_DO( pthread_cond_destroy( &q->cond ), ); |
181 | 181 |
182 CHECK_POSIX( pthread_mutex_destroy( &q->mtx ) ); | 182 CHECK_POSIX_DO( pthread_mutex_destroy( &q->mtx ), ); |
183 | 183 |
184 free(q); | 184 free(q); |
185 *queue = NULL; | 185 *queue = NULL; |
186 | 186 |
187 return 0; | 187 return 0; |