Lines Matching +full:level +full:- +full:triggered

2  * Copyright (c) 2009-2012 Niels Provos and Nick Mathewson
26 #include "../util-internal.h"
27 #include "event2/event-config.h"
82 struct event_base *base = data->base; in test_edgetriggered()
83 evutil_socket_t *pair = data->pair; in test_edgetriggered()
91 * get edge-triggered behavior. Yuck! Linux 3.1.9 didn't have this in test_edgetriggered()
101 TT_BLATHER(("Checking for edge-triggered events with %s, which should %s" in test_edgetriggered()
102 "support edge-triggering", event_base_get_method(base), in test_edgetriggered()
112 * triggered, we'll only see the event once (since we only see transitions in test_edgetriggered()
114 * do nothing. If we're level triggered, the second invocation of in test_edgetriggered()
152 /* try mixing edge-triggered and level-triggered to make sure it fails*/ in test_edgetriggered_mix_error()
153 ev_et = event_new(base, data->pair[0], EV_READ|EV_ET, read_cb, ev_et); in test_edgetriggered_mix_error()
155 ev_lt = event_new(base, data->pair[0], EV_READ, read_cb, ev_lt); in test_edgetriggered_mix_error()
158 /* Add edge-triggered, then level-triggered. Get an error. */ in test_edgetriggered_mix_error()
160 tt_int_op(-1, ==, event_add(ev_lt, NULL)); in test_edgetriggered_mix_error()
165 /* Add level-triggered, then edge-triggered. Get an error. */ in test_edgetriggered_mix_error()
167 tt_int_op(-1, ==, event_add(ev_et, NULL)); in test_edgetriggered_mix_error()
201 * the EPOLLET flag resulting in level triggered
211 struct event_base *base = data->base; in test_edge_triggered_multiple_events()
212 evutil_socket_t *pair = data->pair; in test_edge_triggered_multiple_events()
247 pair[0] = -1; in test_edge_triggered_multiple_events()
249 /* Verify that we are still edge-triggered for write notifications */ in test_edge_triggered_multiple_events()