Custom event for use with fibers and epoll, allowing a process to be
suspended until the event is triggered.
Usage example:
importocean.io.select.client.FiberSelectEvent;
importocean.io.select.EpollSelectDispatcher;
autofiber = newMessageFiber(&coroutine);
autoepoll = newEpollSelectDispatcher;
autoevent = newFiberSelectEvent(fiber, epoll);
// Fiber methodvoidcoroutine ( )
{
// Do something.// Wait on the event, suspends the fiber.event.wait();
// When event.trigger is called (from elsewhere), the fiber is// resumed.
}
Boost Software License Version 1.0. See LICENSE_BOOST.txt for details.
Alternatively, this file may be distributed under the terms of the Tango
3-Clause BSD License (see LICENSE_BSD.txt for details).
Custom event for use with fibers and epoll, allowing a process to be suspended until the event is triggered.
Usage example: