libev release candidate
Marc Lehmann
schmorp at schmorp.de
Tue May 8 17:46:37 CEST 2012
On Tue, May 08, 2012 at 10:33:43AM -0500, Brandon Black <blblack at gmail.com> wrote:
> Then it works. If I change j++ to ++j in the above, it still works.
another bug... cna you try with this loop:
for (i = 0; i < anfdmax; ++i)
{
j = 0;
for (w = w2 = anfds [i].head; w; w = w->next)
{
verify_watcher (EV_A_ (W)w);
if (j++ & 1)
{
assert (("libev: io watcher list contains a loop", w != w2));
w2 = w2->next;
}
assert (("libev: inactive fd watcher on anfd list", ev_active (w) == 1));
assert (("libev: fd mismatch between watcher and anfd", ((ev_io *)w)->fd == i));
}
}
j wasn't initailised to 0 correctly, obviously. sigh.
--
The choice of a Deliantra, the free code+content MORPG
-----==- _GNU_ http://www.deliantra.net
----==-- _ generation
---==---(_)__ __ ____ __ Marc Lehmann
--==---/ / _ \/ // /\ \/ / schmorp at schmorp.de
-=====/_/_//_/\_,_/ /_/\_\
More information about the libev
mailing list