示例#1
0
static void
_test_stop_event(int fd, PARCEventType flags, void *data)
{
    PARCEventSignal **parcEventSignal = (PARCEventSignal **) data;
    _test_event_called++;
    parcEventSignal_Stop(*parcEventSignal);
}
示例#2
0
void
metisDispatcher_StopSignalEvent(MetisDispatcher *dispatcher, PARCEventSignal *event)
{
    assertNotNull(dispatcher, "Parameter dispatcher must be non-null");
    assertNotNull(event, "Parameter event must be non-null");

    int failure = parcEventSignal_Stop(event);
    assertFalse(failure < 0, "Error stopping signal event %p: (%d) %s", (void *) event, errno, strerror(errno));
}