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/os_core_unix.c

    r746 r750  
    185185PJ_DEF(pj_bool_t) pj_thread_is_registered(void) 
    186186{ 
     187#if PJ_HAS_THREADS 
    187188    return pj_thread_local_get(thread_tls_id) != 0; 
     189#else 
     190    pj_assert("pj_thread_is_registered() called in non-threading mode!"); 
     191    return PJ_TRUE; 
     192#endif 
    188193} 
    189194 
     
    945950    return PJ_SUCCESS; 
    946951#else /* PJ_HAS_THREADS */ 
    947     return (pj_mutex_t*)1; 
     952    *ptr_mutex = (pj_mutex_t*)1; 
     953    return PJ_SUCCESS; 
    948954#endif 
    949955} 
Note: See TracChangeset for help on using the changeset viewer.