src/server/daemon/event.c

changeset 542
1327febf99c4
parent 541
1e1fca11aaff
child 543
3335f431a91b
equal deleted inserted replaced
541:1e1fca11aaff 542:1327febf99c4
118 int ins = ev->current & nev; 118 int ins = ev->current & nev;
119 ws_atomic_inc32(&ev->current); 119 ws_atomic_inc32(&ev->current);
120 return ev->instances[ins]; 120 return ev->instances[ins];
121 } 121 }
122 122
123 int ev_free_event(EventHandler *h, Event *event) {
124 free(event);
125 return 0;
126 }
127
123 128
124 void ev_watchlist_add(EventHandler *h, EVWatchList *elm) { 129 void ev_watchlist_add(EventHandler *h, EVWatchList *elm) {
125 watchlist_add(&h->watchlist_begin, &h->watchlist_end, elm); 130 watchlist_add(&h->watchlist_begin, &h->watchlist_end, elm);
126 } 131 }
127 132

mercurial