threading: is lock needed in pro_message_available

Lei Zhang <[email protected]> Thu, 04 Dec 2003 11:57:33 -0800
Newsgroups gmane.network.beep.beepcore.c.general
Message-ID <[email protected]>
Howdy,

I've been digging the wrapper code to no avail for answer to a simple 
question: it seems each incoming message gets delivered to the 
application via a different thread, should I use lock to protect 
critical section in pro_message_available?  Some testing shows that the 
application gets notified about an incoming message only after it has 
finished sending RPY to the previous message - is this observation wrong?

Any hint is immensely appreciated.
Lei



-------------------------------------------------------
This SF.net email is sponsored by: SF.net Giveback Program.
Does SourceForge.net help you be more productive?  Does it
help you create better code?  SHARE THE LOVE, and help us help
YOU!  Click Here: http://sourceforge.net/donate/