Beispiel #1
0
static void
eventer_ports_impl_wakeup(eventer_t e) {
  struct ports_spec *spec = eventer_get_spec_for_event(e);
  if(mtev_spinlock_trylock(&spec->wakeup_notify))
    port_send(spec->port_fd, 0, NULL);
}
static void eventer_kqueue_impl_wakeup(eventer_t e) {
  KQUEUE_DECL;
  KQUEUE_SETUP(e);
  if(mtev_spinlock_trylock(&kqs->wakeup_notify))
    eventer_kqueue_impl_wakeup_spec(kqs);
}