Yes, any number of threads should be able to wait on the same fd. I
don't have an example offhand where this is done however.
Hello guys,
I have another question about the NOX framework codes.
[context]
Under the framework of NOX, there are 8 polling threads that are
keeping polling the nox::Conn, Event_dispatcher, Time_dispatcher (they
are all subclasses of class Pollable). The co_fd_wait(fd...) and
co_fd_block(fd...) may be eventually called when the Pollable.poll()
are executed, which means the polling cooperative thread is virtually
blocked there, and will be virtually waken up later if some thing
ready on that fd.
[question]
My question here is: is it possible that more than one cooperative
threads are waiting for a same fd (I know that there, in fact, is
always only one active cooperative thread running in the system)?
If the answer is yes, would you please give me an related sample in
the current NOX codes.
If the answer is no, would you please point out the codes that can
guarantee this.
Thanks in advance.
Deng
------------------------------------------------------------------------
_______________________________________________
nox-dev mailing list
[email protected]
http://noxrepo.org/mailman/listinfo/nox-dev_noxrepo.org
--
Martin Casado
CTO, Nicira Networks
650-776-1457 (m)
_______________________________________________
nox-dev mailing list
[email protected]
http://noxrepo.org/mailman/listinfo/nox-dev_noxrepo.org