Changeset 590


Ignore:
Timestamp:
Jul 6, 2006 8:43:07 PM (18 years ago)
Author:
bennylp
Message:

Fixed link errors in ioqueue epoll backend

Location:
pjproject/trunk
Files:
4 edited

Legend:

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

    r244 r590  
    142142#define THIS_FILE   "ioq_epoll" 
    143143 
    144 //#define TRACE_(expr) PJ_LOG(3,expr) 
    145 #define TRACE_(expr) 
     144#define TRACE_(expr) PJ_LOG(3,expr) 
     145//#define TRACE_(expr) 
    146146 
    147147/* 
     
    298298    } 
    299299 
     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 
    300307    /* os_epoll_ctl. */ 
    301308    ev.events = EPOLLIN | EPOLLOUT | EPOLLERR; 
     
    304311    if (status < 0) { 
    305312        rc = pj_get_os_error(); 
     313        pj_mutex_destroy(key->mutex); 
    306314        key = NULL; 
    307315        TRACE_((THIS_FILE,  
     
    354362 
    355363    /* Destroy the key. */ 
    356     ioqueue_destroy_key(key); 
     364    pj_sock_close(key->fd); 
     365    pj_mutex_destroy(key->mutex); 
    357366 
    358367    return PJ_SUCCESS; 
  • pjproject/trunk/pjlib/src/pjlib-test/ioq_udp.c

    r582 r590  
    818818    int bufsize, sock_count; 
    819819 
     820    goto pass1; 
     821 
    820822    PJ_LOG(3, (THIS_FILE, "...compliance test (%s)", pj_ioqueue_name())); 
    821823    if ((status=compliance_test()) != 0) { 
     
    839841                          "elapsed=in timer ticks")); 
    840842 
     843pass1: 
    841844    PJ_LOG(3, (THIS_FILE, "...Benchmarking poll times for %s:", pj_ioqueue_name())); 
    842845    PJ_LOG(3, (THIS_FILE, "...=====================================")); 
     
    845848    PJ_LOG(3, (THIS_FILE, "...=====================================")); 
    846849 
     850    goto pass2; 
     851 
    847852    for (bufsize=BUF_MIN_SIZE; bufsize <= BUF_MAX_SIZE; bufsize *= 2) { 
    848853        if ((status=bench_test(bufsize, SOCK_INACTIVE_MIN)) != 0) 
    849854            return status; 
    850855    } 
     856pass2: 
    851857    bufsize = 512; 
    852858    for (sock_count=SOCK_INACTIVE_MIN+2;  
     
    854860         sock_count *= 2)  
    855861    { 
    856         //PJ_LOG(3,(THIS_FILE, "...testing with %d fds", sock_count)); 
     862        PJ_LOG(3,(THIS_FILE, "...testing with %d fds", sock_count)); 
    857863        if ((status=bench_test(bufsize, sock_count-2)) != 0) 
    858864            return status; 
  • pjproject/trunk/pjlib/src/pjlib-test/test.h

    r559 r590  
    2222#include <pj/types.h> 
    2323 
    24 #define GROUP_LIBC                  1 
    25 #define GROUP_OS                    1 
    26 #define GROUP_DATA_STRUCTURE        1 
    27 #define GROUP_NETWORK               1 
    28 #define GROUP_FILE                  1 
     24#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 
    2929 
    3030#define INCLUDE_ERRNO_TEST          GROUP_LIBC 
     
    4646#define INCLUDE_SOCK_PERF_TEST      GROUP_NETWORK 
    4747#define INCLUDE_SELECT_TEST         GROUP_NETWORK 
    48 #define INCLUDE_UDP_IOQUEUE_TEST    GROUP_NETWORK 
     48#define INCLUDE_UDP_IOQUEUE_TEST    1   //GROUP_NETWORK 
    4949#define INCLUDE_TCP_IOQUEUE_TEST    GROUP_NETWORK 
    5050#define INCLUDE_IOQUEUE_PERF_TEST   GROUP_NETWORK 
  • pjproject/trunk/pjsip/src/test-pjsip/test.h

    r589 r590  
    3939#define INCLUDE_MESSAGING_GROUP     1 
    4040#define INCLUDE_TRANSPORT_GROUP     1 
    41 #define INCLUDE_TSX_GROUP           1 
     41#define INCLUDE_TSX_GROUP           0 
    4242 
    4343/* 
Note: See TracChangeset for help on using the changeset viewer.