t;
std::endl;
}[/CODE]
Did i understand right, that after registering and firing one event the
kevent() function doesn't block any more?
If so, register the events with EV_ADD | EV_CLEAR. With this flag, the
event state is cleared and kevent() is still blocking(man kqueue).
That
e, 1, NULL);
if ( i == -1 ) {
std::cerr << "kqueue produced error: " << strerror(i) <<
std::endl;
continue; // todo is this the best thing todo?
} else if ( i == 0 ) {
std::cerr << "kqueue time limit expired" <<
Hi,
I'm trying to use a kqueue to listen for VNODE events on a worker thread. I
want new events to be registered with the kqueue by a separate thread.
I have been referring to this example [URL="
http://doc.geoffgarside.co.uk/kqueue/file.html";]
http://doc.geoffgarside.co.uk/k
Thanks for your reply!
Am 23.01.2012 20:12, schrieb Pieter de Goeje:
kevent is triggered when a file is renamed. How do I get the new name?
Is there an extra function? In the moment, I see only the possibility
by searching the filesystem(folder) for a new name.
A good question to which I unfort
On 23-1-2012 11:52, Info wrote:
I'm using kqueue for detecting file-events; for additional information
I add a struct to udata, when registering an event with kevent.
When I delete an event, will be udata deleted too, or do I have to
manage the memory for the structs with an own implement
Hi,
I'm using kqueue for detecting file-events; for additional information I
add a struct to udata, when registering an event with kevent.
When I delete an event, will be udata deleted too, or do I have to
manage the memory for the structs with an own implementation?
kevent is triggered
Hi everyone,
I'm trying to use kqueue with EVFILT_TIMER to create an interval timer.
However, I'm getting very unreliable results.
The code for a test case is at: http://pastebin.com/ratK0AXL
I'm finding that regardless of the number of ticks I wait for, it takes
around 50%
Hi,
I'm using a kqueue(2) that installs a timer into the queue when a certain
condition has happened. This timer waits for another condition at intervals
(specifically, it watches for a file to be created). Every 500ms it does a
stat(2) for a given filename and when stat succeeds, I d
None of these have any relation to polling of the network interfaces as
described in the polling(4) manpage.
The only connection between poll(2) and polling(4) is that they have similar
names.
So, to answer your question: No, you do not need to have polling enabled in
order to use kqueue
On Thu, Oct 27, 2005 at 05:09:58PM +0800, ke.han wrote:
> Dear list,
> I will be using kqueue on freeBSD 6.0-rc1 and need to understand the
> relationship between kqueue and polling since polling support requires
> explicite enabling and choosing the correct ethernet drivers, etc...
Dear list,
I will be using kqueue on freeBSD 6.0-rc1 and need to understand the
relationship between kqueue and polling since polling support requires
explicite enabling and choosing the correct ethernet drivers, etc...
First, is there a relationship between kqueue and polling? The kqueue
man
Hi!
I apply the KQUEUE patch for apache 2.0.54_4 - make
WITH_KQUEUE_SUPPORT=yes install
but after that top -U www shows that it uses select().
Anyone knows how to activate apache to use kqueue in config file or
somewhere else?
Regards,
--
Димитър Василев
Dimitar Vassilev
GnuPG key ID: 0x4B8DB525
Hi,
Can anyone please tell me is kqueue/kevent model in
FreeBSD 5.x a real-time event model?
Thanks
Sam
__
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com
Hi,
Is possible replace all select() functions with
kqueue() and kevent() for FreeBSD 5.x or Current?
Sam
Start your day with Yahoo! - make it your home page
http://www.yahoo.com/r/hs
On Tue, Sep 24, 2002 at 11:07:04PM +0200, Michel Oosterhof wrote:
>
> Hello.
>
> Recently I started looking into kqueue(2), and to get to know the
> interface better I attempted to turn usr.sbin/moused into a kqueue
> program (replacing the main select() loop that reads
Hello.
Recently I started looking into kqueue(2), and to get to know the
interface better I attempted to turn usr.sbin/moused into a kqueue
program (replacing the main select() loop that reads the mouse
device).
Now I thought I understood the interface, I requested a kqueue, but
as soon as I
16 matches
Mail list logo