Ignore:
Timestamp:
Jul 8, 2006 7:46:43 PM (17 years ago)
Author:
bennylp
Message:

Attempted to fix epoll for Linux

File:
1 edited

Legend:

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

    r433 r592  
    543543 */ 
    544544static void ioqueue_remove_from_set( pj_ioqueue_t *ioqueue, 
    545                                      pj_sock_t fd,  
     545                                     pj_ioqueue_key_t *key,  
    546546                                     enum ioqueue_event_type event_type) 
    547547{ 
     
    549549 
    550550    if (event_type == READABLE_EVENT) 
    551         PJ_FD_CLR((pj_sock_t)fd, &ioqueue->rfdset); 
     551        PJ_FD_CLR((pj_sock_t)key->fd, &ioqueue->rfdset); 
    552552    else if (event_type == WRITEABLE_EVENT) 
    553         PJ_FD_CLR((pj_sock_t)fd, &ioqueue->wfdset); 
     553        PJ_FD_CLR((pj_sock_t)key->fd, &ioqueue->wfdset); 
    554554    else if (event_type == EXCEPTION_EVENT) 
    555         PJ_FD_CLR((pj_sock_t)fd, &ioqueue->xfdset); 
     555        PJ_FD_CLR((pj_sock_t)key->fd, &ioqueue->xfdset); 
    556556    else 
    557557        pj_assert(0); 
     
    567567 */ 
    568568static void ioqueue_add_to_set( pj_ioqueue_t *ioqueue, 
    569                                 pj_sock_t fd, 
     569                                pj_ioqueue_key_t *key, 
    570570                                enum ioqueue_event_type event_type ) 
    571571{ 
     
    573573 
    574574    if (event_type == READABLE_EVENT) 
    575         PJ_FD_SET((pj_sock_t)fd, &ioqueue->rfdset); 
     575        PJ_FD_SET((pj_sock_t)key->fd, &ioqueue->rfdset); 
    576576    else if (event_type == WRITEABLE_EVENT) 
    577         PJ_FD_SET((pj_sock_t)fd, &ioqueue->wfdset); 
     577        PJ_FD_SET((pj_sock_t)key->fd, &ioqueue->wfdset); 
    578578    else if (event_type == EXCEPTION_EVENT) 
    579         PJ_FD_SET((pj_sock_t)fd, &ioqueue->xfdset); 
     579        PJ_FD_SET((pj_sock_t)key->fd, &ioqueue->xfdset); 
    580580    else 
    581581        pj_assert(0); 
Note: See TracChangeset for help on using the changeset viewer.