Ignore:
Timestamp:
Nov 6, 2005 4:50:38 PM (18 years ago)
Author:
bennylp
Message:

Tested new ioqueue framework on Linux with select and epoll

File:
1 edited

Legend:

Unmodified
Added
Removed
  • pjproject/main/pjlib/src/pj/ioqueue_select.c

    r12 r14  
    206206    key = (pj_ioqueue_key_t*)pj_pool_zalloc(pool, sizeof(pj_ioqueue_key_t)); 
    207207    rc = ioqueue_init_key(pool, ioqueue, key, sock, user_data, cb); 
    208     if (rc != PJ_SUCCESS) 
    209         return rc; 
     208    if (rc != PJ_SUCCESS) { 
     209        key = NULL; 
     210        goto on_return; 
     211    } 
    210212 
    211213    /* Register */ 
     
    381383    struct event 
    382384    { 
    383         pj_ioqueue_key_t    *key; 
    384         enum event_type      event_type; 
     385        pj_ioqueue_key_t        *key; 
     386        enum ioqueue_event_type  event_type; 
    385387    } event[PJ_IOQUEUE_MAX_EVENTS_IN_SINGLE_POLL]; 
    386388 
     
    453455            event[counter].key = h; 
    454456            event[counter].event_type = READABLE_EVENT; 
    455             ++counter;        } 
     457            ++counter; 
     458        } 
    456459 
    457460#if PJ_HAS_TCP 
     
    483486            break; 
    484487        case NO_EVENT: 
    485         default: 
    486488            pj_assert(!"Invalid event!"); 
    487489            break; 
Note: See TracChangeset for help on using the changeset viewer.