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_select.c

    r592 r750  
    697697 
    698698        if ( (key_has_pending_write(h) || key_has_pending_connect(h)) 
    699              && PJ_FD_ISSET(h->fd, &wfdset) && !h->closing) 
     699             && PJ_FD_ISSET(h->fd, &wfdset) && !IS_CLOSING(h)) 
    700700        { 
    701701#if PJ_IOQUEUE_HAS_SAFE_UNREG 
     
    709709        /* Scan for readable socket. */ 
    710710        if ((key_has_pending_read(h) || key_has_pending_accept(h)) 
    711             && PJ_FD_ISSET(h->fd, &rfdset) && !h->closing) 
     711            && PJ_FD_ISSET(h->fd, &rfdset) && !IS_CLOSING(h)) 
    712712        { 
    713713#if PJ_IOQUEUE_HAS_SAFE_UNREG 
     
    721721#if PJ_HAS_TCP 
    722722        if (key_has_pending_connect(h) && PJ_FD_ISSET(h->fd, &xfdset) && 
    723             !h->closing)  
     723            !IS_CLOSING(h))  
    724724        { 
    725725#if PJ_IOQUEUE_HAS_SAFE_UNREG 
Note: See TracChangeset for help on using the changeset viewer.