hi all.there are several questions about memcache source code when i study .the 
event_base struct  has two members: eventqueue and activequeues.the event 
struct has two members: ev_flags and ev_res.the ev_flags and ev_res both can be 
set the following 
value:EVLIST_TIMEOUT,EVLIST_INSERTED,EVLIST_SIGNAL,EVLIST_ACTIVE,EVLIST_INTERNAL
 and EVLIST_INIT,the ev_res is defined as result passed to event callback.which 
queue one event is put into is according to the values of ev_flags and ev_res.  
the EV_READ and EV_WRITE event is put into the eventqueue, and the ev_flags is 
also set EVLIST_INSERT ,EV_TIMEOUT and others event is put into the 
activequeues and the ev_flags is also set EVLIST_ACTIVE. perhaps i understand 
wrong:)
but event_process_active function only deals with the events those are put into 
the activequeues,so how the events those are put into the evenqueue ?
 
my questions are what defference between the activequeues and eventqueue,what 
defference between EVLIST_INSERTED and EVLIST_ACTIVE,what use of  the ev_res.
 
thank u for you sharing:)
_________________________________________________________________
Express yourself instantly with MSN Messenger! Download today it's FREE!
http://messenger.msn.click-url.com/go/onm00200471ave/direct/01/

Reply via email to