Displaying 5 results from an estimated 5 matches for "event_count".
Did you mean:
  events_count
  
2018 Feb 27
2
tinc 1.1: missing PONG
Here's a diff to call WSAWaitForMultipleEvents() repeatedly to check
for events other than the first one returned.  I've also added a
map of io_t to events[] index so avoid the need for splay_search().
The value of event_count will change if a callback adds an event
so we need to handle that.
I've added a generation number to the splay tree head that gets
incremented by io_del().  I'm undecided whether it should also be
incremented by io_add().
Does this seem like the right direction?
 - todd
diff --git a/src...
2007 Oct 15
2
cumulative frequency plots for factors
Dear list,
I have a data frame with a number of events (factor) and the times at which they occurred (continuous variable):
event time
A 10
A 12
B 15
A 17
C 13
...
Is it possible in R to make a plot against time of the cumulative frequency of occurrence of each event? This would be, a raising line for each factor.
Regards,
Dieter
2018 Feb 23
2
tinc 1.1: missing PONG
...to pings.
Another solution would to randomly shuffle events[] but that seems
needlessly complicated.
 - todd
diff --git a/src/event.c b/src/event.c
index 331872a..03111d0 100644
--- a/src/event.c
+++ b/src/event.c
@@ -403,11 +403,14 @@ bool event_loop(void) {
 		}
 
 		WSAEVENT *events = xmalloc(event_count * sizeof(*events));
-		DWORD event_index = 0;
+		DWORD event_index = event_count;
 
+		/*
+		 * Fill events[] in reverse order.  Otherwise we may starve
+		 * events other than the TAP, which is usually at the head.
+		 */
 		for splay_each(io_t, io, &io_tree) {
-			events[event_index] = io->...
2013 Jan 03
20
[PATCH] Switch to poll in xenconsoled's io loop.
...ouple of ms sooner than requested. Without
-			   the fuzz we typically do an extra spin in select()
-			   with a 1/2 ms timeout every other iteration */
-			if ((now+5) > d->next_period) {
+			if (now > d->next_period) {
 				d->next_period = now + RATE_LIMIT_PERIOD;
 				if (d->event_count >= RATE_LIMIT_ALLOWANCE) {
 					(void)xc_evtchn_unmask(d->xce_handle, d->local_port);
@@ -1006,74 +1013,73 @@ void handle_io(void)
 				    !d->buffer.max_capacity ||
 				    d->buffer.size < d->buffer.max_capacity) {
 					int evtchn_fd = xc_evtchn_fd(d->xce_handle);
-...
2018 Feb 27
0
tinc 1.1: missing PONG
...> Here's a diff to call WSAWaitForMultipleEvents() repeatedly to check
> for events other than the first one returned.  I've also added a
> map of io_t to events[] index so avoid the need for splay_search().
That's great, less changes to the tree are good.
> The value of event_count will change if a callback adds an event
> so we need to handle that.
> 
> I've added a generation number to the splay tree head that gets
> incremented by io_del().  I'm undecided whether it should also be
> incremented by io_add().
That would probably be nice to do, althoug...