Exemple #1
0
void
metisDispatcher_Stop(MetisDispatcher *dispatcher)
{
    struct timeval delay = { 0, 1000 };

    parcEventScheduler_Stop(dispatcher->Base, &delay);
}
static void
_stop_callback(int fd, PARCEventType flags, void *data)
{
    PARCEventScheduler *parcEventScheduler = (PARCEventScheduler *) data;
    struct timeval fs = { 0, 0 };
    parcEventScheduler_Stop(parcEventScheduler, &fs);
    _callback_event_called++;
}
Exemple #3
0
void
metisDispatcher_RunDuration(MetisDispatcher *dispatcher, struct timeval *duration)
{
    assertNotNull(dispatcher, "Parameter dispatcher must be non-null");
    assertNotNull(duration, "Parameter duration must be non-null");

    parcEventScheduler_Stop(dispatcher->Base, duration);
    parcEventScheduler_Start(dispatcher->Base, 0);
}