Changeset 750 for pjproject/trunk
- Timestamp:
- Oct 4, 2006 8:46:27 PM (18 years ago)
- Location:
- pjproject/trunk/pjlib
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
pjproject/trunk/pjlib/include/pj/config_site_sample.h
r695 r750 45 45 # define PJ_HAS_ERROR_STRING 0 46 46 # undef PJ_IOQUEUE_MAX_HANDLES 47 # define PJ_IOQUEUE_MAX_HANDLES 448 # define PJSIP_MAX_TSX_COUNT 1 649 # define PJSIP_MAX_DIALOG_COUNT 1 647 # define PJ_IOQUEUE_MAX_HANDLES 16 48 # define PJSIP_MAX_TSX_COUNT 15 49 # define PJSIP_MAX_DIALOG_COUNT 15 50 50 # define PJSIP_UDP_SO_SNDBUF_SIZE 4000 51 51 # define PJSIP_UDP_SO_RCVBUF_SIZE 4000 … … 54 54 # define PJSIP_AUTH_QOP_SUPPORT 0 55 55 # define PJMEDIA_HAS_LARGE_FILTER 0 56 # define PJMEDIA_HAS_SMALL_FILTER 156 # define PJMEDIA_HAS_SMALL_FILTER 0 57 57 58 58 -
pjproject/trunk/pjlib/src/pj/ioqueue_common_abs.c
r624 r750 184 184 pj_mutex_lock(h->mutex); 185 185 186 if ( h->closing) {186 if (IS_CLOSING(h)) { 187 187 pj_mutex_unlock(h->mutex); 188 188 return; … … 362 362 pj_mutex_lock(h->mutex); 363 363 364 if ( h->closing) {364 if (IS_CLOSING(h)) { 365 365 pj_mutex_unlock(h->mutex); 366 366 return; … … 511 511 } 512 512 513 if ( h->closing) {513 if (IS_CLOSING(h)) { 514 514 pj_mutex_unlock(h->mutex); 515 515 return; … … 561 561 562 562 /* Check if key is closing. */ 563 if ( key->closing)563 if (IS_CLOSING(key)) 564 564 return PJ_ECANCELLED; 565 565 … … 623 623 624 624 /* Check if key is closing. */ 625 if ( key->closing)625 if (IS_CLOSING(key)) 626 626 return PJ_ECANCELLED; 627 627 … … 692 692 693 693 /* Check if key is closing. */ 694 if ( key->closing)694 if (IS_CLOSING(key)) 695 695 return PJ_ECANCELLED; 696 696 … … 801 801 802 802 /* Check if key is closing. */ 803 if ( key->closing)803 if (IS_CLOSING(key)) 804 804 return PJ_ECANCELLED; 805 805 … … 914 914 915 915 /* Check if key is closing. */ 916 if ( key->closing)916 if (IS_CLOSING(key)) 917 917 return PJ_ECANCELLED; 918 918 … … 979 979 980 980 /* Check if key is closing. */ 981 if ( key->closing)981 if (IS_CLOSING(key)) 982 982 return PJ_ECANCELLED; 983 983 -
pjproject/trunk/pjlib/src/pj/ioqueue_select.c
r592 r750 697 697 698 698 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)) 700 700 { 701 701 #if PJ_IOQUEUE_HAS_SAFE_UNREG … … 709 709 /* Scan for readable socket. */ 710 710 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)) 712 712 { 713 713 #if PJ_IOQUEUE_HAS_SAFE_UNREG … … 721 721 #if PJ_HAS_TCP 722 722 if (key_has_pending_connect(h) && PJ_FD_ISSET(h->fd, &xfdset) && 723 ! h->closing)723 !IS_CLOSING(h)) 724 724 { 725 725 #if PJ_IOQUEUE_HAS_SAFE_UNREG -
pjproject/trunk/pjlib/src/pj/os_core_unix.c
r746 r750 185 185 PJ_DEF(pj_bool_t) pj_thread_is_registered(void) 186 186 { 187 #if PJ_HAS_THREADS 187 188 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 188 193 } 189 194 … … 945 950 return PJ_SUCCESS; 946 951 #else /* PJ_HAS_THREADS */ 947 return (pj_mutex_t*)1; 952 *ptr_mutex = (pj_mutex_t*)1; 953 return PJ_SUCCESS; 948 954 #endif 949 955 }
Note: See TracChangeset
for help on using the changeset viewer.