Changeset 4359 for pjproject/trunk/pjlib/src/pj/ioqueue_epoll.c
- Timestamp:
- Feb 21, 2013 11:18:36 AM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
pjproject/trunk/pjlib/src/pj/ioqueue_epoll.c
r3553 r4359 263 263 key = PJ_POOL_ALLOC_T(pool, pj_ioqueue_key_t); 264 264 key->ref_count = 0; 265 rc = pj_ mutex_create_recursive(pool, NULL, &key->mutex);265 rc = pj_lock_create_recursive_mutex(pool, NULL, &key->lock); 266 266 if (rc != PJ_SUCCESS) { 267 267 key = ioqueue->free_list.next; 268 268 while (key != &ioqueue->free_list) { 269 pj_ mutex_destroy(key->mutex);269 pj_lock_destroy(key->lock); 270 270 key = key->next; 271 271 } … … 324 324 key = ioqueue->active_list.next; 325 325 while (key != &ioqueue->active_list) { 326 pj_ mutex_destroy(key->mutex);326 pj_lock_destroy(key->lock); 327 327 key = key->next; 328 328 } … … 330 330 key = ioqueue->closing_list.next; 331 331 while (key != &ioqueue->closing_list) { 332 pj_ mutex_destroy(key->mutex);332 pj_lock_destroy(key->lock); 333 333 key = key->next; 334 334 } … … 336 336 key = ioqueue->free_list.next; 337 337 while (key != &ioqueue->free_list) { 338 pj_ mutex_destroy(key->mutex);338 pj_lock_destroy(key->lock); 339 339 key = key->next; 340 340 } … … 423 423 if (status < 0) { 424 424 rc = pj_get_os_error(); 425 pj_ mutex_destroy(key->mutex);425 pj_lock_destroy(key->lock); 426 426 key = NULL; 427 427 TRACE_((THIS_FILE, … … 498 498 * deadlock. 499 499 */ 500 pj_ mutex_lock(key->mutex);500 pj_lock_acquire(key->lock); 501 501 502 502 /* Also lock ioqueue */ … … 532 532 533 533 /* Done. */ 534 pj_ mutex_unlock(key->mutex);534 pj_lock_release(key->lock); 535 535 #else 536 pj_ mutex_destroy(key->mutex);536 pj_lock_destroy(key->lock); 537 537 #endif 538 538
Note: See TracChangeset
for help on using the changeset viewer.