Ignore:
Timestamp:
Oct 4, 2006 8:46:27 PM (18 years ago)
Author:
bennylp
Message:

Fixed compilation errors when threading is disabled (PJ_HAS_THREADS=0) and safe ioqueue unregistration is disabled (PJ_IOQUEUE_HAS_SAFE_UNREG=0). Also increase PJ_IOQUEUE_MAX_HANDLES for minimum config to 16 in config_sample.h [thanks Olivier Gournet].

File:
1 edited

Legend:

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

    r624 r750  
    184184    pj_mutex_lock(h->mutex); 
    185185 
    186     if (h->closing) { 
     186    if (IS_CLOSING(h)) { 
    187187        pj_mutex_unlock(h->mutex); 
    188188        return; 
     
    362362    pj_mutex_lock(h->mutex); 
    363363 
    364     if (h->closing) { 
     364    if (IS_CLOSING(h)) { 
    365365        pj_mutex_unlock(h->mutex); 
    366366        return; 
     
    511511    } 
    512512 
    513     if (h->closing) { 
     513    if (IS_CLOSING(h)) { 
    514514        pj_mutex_unlock(h->mutex); 
    515515        return; 
     
    561561 
    562562    /* Check if key is closing. */ 
    563     if (key->closing) 
     563    if (IS_CLOSING(key)) 
    564564        return PJ_ECANCELLED; 
    565565 
     
    623623 
    624624    /* Check if key is closing. */ 
    625     if (key->closing) 
     625    if (IS_CLOSING(key)) 
    626626        return PJ_ECANCELLED; 
    627627 
     
    692692 
    693693    /* Check if key is closing. */ 
    694     if (key->closing) 
     694    if (IS_CLOSING(key)) 
    695695        return PJ_ECANCELLED; 
    696696 
     
    801801 
    802802    /* Check if key is closing. */ 
    803     if (key->closing) 
     803    if (IS_CLOSING(key)) 
    804804        return PJ_ECANCELLED; 
    805805 
     
    914914 
    915915    /* Check if key is closing. */ 
    916     if (key->closing) 
     916    if (IS_CLOSING(key)) 
    917917        return PJ_ECANCELLED; 
    918918 
     
    979979 
    980980    /* Check if key is closing. */ 
    981     if (key->closing) 
     981    if (IS_CLOSING(key)) 
    982982        return PJ_ECANCELLED; 
    983983 
Note: See TracChangeset for help on using the changeset viewer.