Changeset 590
- Timestamp:
- Jul 6, 2006 8:43:07 PM (18 years ago)
- Location:
- pjproject/trunk
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
pjproject/trunk/pjlib/src/pj/ioqueue_epoll.c
r244 r590 142 142 #define THIS_FILE "ioq_epoll" 143 143 144 //#define TRACE_(expr) PJ_LOG(3,expr)145 #define TRACE_(expr)144 #define TRACE_(expr) PJ_LOG(3,expr) 145 //#define TRACE_(expr) 146 146 147 147 /* … … 298 298 } 299 299 300 /* Create key's mutex */ 301 rc = pj_mutex_create_recursive(pool, NULL, &key->mutex); 302 if (rc != PJ_SUCCESS) { 303 key = NULL; 304 goto on_return; 305 } 306 300 307 /* os_epoll_ctl. */ 301 308 ev.events = EPOLLIN | EPOLLOUT | EPOLLERR; … … 304 311 if (status < 0) { 305 312 rc = pj_get_os_error(); 313 pj_mutex_destroy(key->mutex); 306 314 key = NULL; 307 315 TRACE_((THIS_FILE, … … 354 362 355 363 /* Destroy the key. */ 356 ioqueue_destroy_key(key); 364 pj_sock_close(key->fd); 365 pj_mutex_destroy(key->mutex); 357 366 358 367 return PJ_SUCCESS; -
pjproject/trunk/pjlib/src/pjlib-test/ioq_udp.c
r582 r590 818 818 int bufsize, sock_count; 819 819 820 goto pass1; 821 820 822 PJ_LOG(3, (THIS_FILE, "...compliance test (%s)", pj_ioqueue_name())); 821 823 if ((status=compliance_test()) != 0) { … … 839 841 "elapsed=in timer ticks")); 840 842 843 pass1: 841 844 PJ_LOG(3, (THIS_FILE, "...Benchmarking poll times for %s:", pj_ioqueue_name())); 842 845 PJ_LOG(3, (THIS_FILE, "...=====================================")); … … 845 848 PJ_LOG(3, (THIS_FILE, "...=====================================")); 846 849 850 goto pass2; 851 847 852 for (bufsize=BUF_MIN_SIZE; bufsize <= BUF_MAX_SIZE; bufsize *= 2) { 848 853 if ((status=bench_test(bufsize, SOCK_INACTIVE_MIN)) != 0) 849 854 return status; 850 855 } 856 pass2: 851 857 bufsize = 512; 852 858 for (sock_count=SOCK_INACTIVE_MIN+2; … … 854 860 sock_count *= 2) 855 861 { 856 //PJ_LOG(3,(THIS_FILE, "...testing with %d fds", sock_count));862 PJ_LOG(3,(THIS_FILE, "...testing with %d fds", sock_count)); 857 863 if ((status=bench_test(bufsize, sock_count-2)) != 0) 858 864 return status; -
pjproject/trunk/pjlib/src/pjlib-test/test.h
r559 r590 22 22 #include <pj/types.h> 23 23 24 #define GROUP_LIBC 125 #define GROUP_OS 126 #define GROUP_DATA_STRUCTURE 127 #define GROUP_NETWORK 128 #define GROUP_FILE 124 #define GROUP_LIBC 0 25 #define GROUP_OS 0 26 #define GROUP_DATA_STRUCTURE 0 27 #define GROUP_NETWORK 0 28 #define GROUP_FILE 0 29 29 30 30 #define INCLUDE_ERRNO_TEST GROUP_LIBC … … 46 46 #define INCLUDE_SOCK_PERF_TEST GROUP_NETWORK 47 47 #define INCLUDE_SELECT_TEST GROUP_NETWORK 48 #define INCLUDE_UDP_IOQUEUE_TEST GROUP_NETWORK48 #define INCLUDE_UDP_IOQUEUE_TEST 1 //GROUP_NETWORK 49 49 #define INCLUDE_TCP_IOQUEUE_TEST GROUP_NETWORK 50 50 #define INCLUDE_IOQUEUE_PERF_TEST GROUP_NETWORK -
pjproject/trunk/pjsip/src/test-pjsip/test.h
r589 r590 39 39 #define INCLUDE_MESSAGING_GROUP 1 40 40 #define INCLUDE_TRANSPORT_GROUP 1 41 #define INCLUDE_TSX_GROUP 141 #define INCLUDE_TSX_GROUP 0 42 42 43 43 /*
Note: See TracChangeset
for help on using the changeset viewer.