Lines Matching refs:events

1357         fde->events |= hook->wanted;
1387 event_looper_hook( EventLooper looper, int fd, int events )
1406 if ( (node->wanted & events) != events ) {
1409 fd, node->wanted, events);
1410 f->clazz->_fh_hook( f, events & ~node->wanted, node );
1411 node->wanted |= events;
1413 D("event_looper_hook: ignoring events %x for %d wanted=%x)\n",
1414 events, fd, node->wanted);
1419 event_looper_unhook( EventLooper looper, int fd, int events )
1426 int events2 = events & node->wanted;
1428 D( "event_looper_unhook: events %x not registered for fd %d\n", events, fd );
1447 * WaitForMultipleObjects to wait on connection events simply wouldn't cut,
1624 int events = fde->state & FDE_EVENTMASK;
1626 if (events != 0)
1627 event_looper_hook( looper, fde->fd, events );
1633 int events = fde->state & FDE_EVENTMASK;
1635 if (events != 0)
1636 event_looper_unhook( looper, fde->fd, events );
1639 static void fdevent_update(fdevent *fde, unsigned events)
1644 if (events != events0) {
1645 int removes = events0 & ~events;
1646 int adds = events & ~events0;
1710 D( "adb_win32: waiting for %d events\n", looper->htab_count );
1722 /* according to Cygwin, some objects like consoles wake up on "inappropriate" events
1884 fde->events = 0;
1888 void fdevent_set(fdevent *fde, unsigned events)
1890 events &= FDE_EVENTMASK;
1892 if((fde->state & FDE_EVENTMASK) == (int)events) return;
1895 fdevent_update(fde, events);
1899 fde->state = (fde->state & FDE_STATEMASK) | events;
1906 fde->events &= (~events);
1907 if(fde->events == 0) {
1914 void fdevent_add(fdevent *fde, unsigned events)
1917 fde, (fde->state & FDE_EVENTMASK) | (events & FDE_EVENTMASK));
1920 void fdevent_del(fdevent *fde, unsigned events)
1923 fde, (fde->state & FDE_EVENTMASK) & (~(events & FDE_EVENTMASK)));
1932 fprintf(stderr,"--- ---- waiting for events\n");
1937 unsigned events = fde->events;
1938 fde->events = 0;
1941 fde->func(fde->fd, events, fde->arg);
1962 static void _fh_file_hook( FH f, int events, EventHook hook )
1996 /* look if some of the events we want already happened ? */
2069 /* look if some of the events we want already happened ? */
2081 static void _fh_socket_hook( FH f, int events, EventHook hook )
2137 static void _fh_socketpair_hook( FH fh, int events, EventHook hook )