Ignore:
Timestamp:
Sep 19, 2008 10:18:50 PM (16 years ago)
Author:
bennylp
Message:

Couple of fixes in ioqueue_epoll for ticket #622 (still not working)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • pjproject/trunk/pjlib/src/pj/ioqueue_epoll.c

    r2295 r2300  
    254254    pj_list_init(&ioqueue->free_list); 
    255255    pj_list_init(&ioqueue->closing_list); 
     256    pj_list_init(&ioqueue->active_list); 
    256257 
    257258 
     
    492493 
    493494    ioqueue = key->ioqueue; 
     495 
     496    /* Lock the key to make sure no callback is simultaneously modifying 
     497     * the key. We need to lock the key before ioqueue here to prevent 
     498     * deadlock. 
     499     */ 
     500    pj_mutex_lock(key->mutex); 
     501 
     502    /* Also lock ioqueue */ 
    494503    pj_lock_acquire(ioqueue->lock); 
    495504 
Note: See TracChangeset for help on using the changeset viewer.