[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
[Libevent-users] What was EV_PRI for in 1.4.12?
- To: libevent-users@xxxxxxxx
- Subject: [Libevent-users] What was EV_PRI for in 1.4.12?
- From: Daniel Janzon <janzon@xxxxxxxxx>
- Date: Mon, 4 Oct 2010 23:01:03 +0200
- Delivered-to: archiver@xxxxxxxx
- Delivered-to: libevent-users-outgoing@xxxxxxxx
- Delivered-to: libevent-users@xxxxxxxx
- Delivery-date: Mon, 04 Oct 2010 17:01:17 -0400
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:received:date:message-id :subject:from:to:content-type; bh=1FhauiYmGYEldU2nWW7gHNQZ0JYdljOdDk4qQ7CTODI=; b=s8nMKTb2F7O4T3xLM2htOKCw9eVEbEi0iqBCcjYK9S6iLKWbiMOZSoyJ3X4YILIuMr 0d1knqHohKqi/8vK+jhFGVM8wg7psJ0oExdSQ3552IcMGgl8yY8K8kbPvodDa3UerA6U NaXWtKiYHBCxG0bek/No01rzTgyvGx6cofYCI=
- Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:date:message-id:subject:from:to:content-type; b=P3vjv51XCyJdM+p3UMoPYvT0fDoY4WnrCN8pMTIzckJnATCyZGXL1BYO/dLPEMddKB 6NTEf4l1in+gPqqeB3vUqGJ4qA/PfmqAoacCRxy8Q8lW33vjBgrX2a0NbIIeTIOaX+J3 0I0JQPoRONQVESVEr0sAlBfIG6XrZkmzP7VVo=
- Reply-to: libevent-users@xxxxxxxxxxxxx
- Sender: owner-libevent-users@xxxxxxxxxxxxx
Hello,
I have some old code linked against libevent 1.4.12, but I want to
upgrade to the latest version. However, it didn't compile unless I
removed the EV_PRI bit in event_set. It doesn't seem to exist in later
code, I grepped for it. I was doing
event_set(..., EV_PRI | EV_PERSIST, ...)
but had to change to
event_set(..., EV_PERSIST, ...).
For some reason this seems to break it; the event doesn't get set.
Anyhow, my question to the list is what did the EV_PRI flag do?
The reason I don't post more code, and believe this is the problem is
(1) The EV_PRI only seems to be relevant for epoll, and the code
doesn't work when I try to use other event mechanisms.
(2) The other events work fine with the new libraries, it's just
events on this file descriptor that doesn't work.
I tried both 1.4.14b-stable and 2.0.7-rc.
All the best,
Daniel
***********************************************************************
To unsubscribe, send an e-mail to majordomo@xxxxxxxxxxxxx with
unsubscribe libevent-users in the body.