[OT] WMQ and threading

Giganews Newsgroups
Subject: [OT] WMQ and threading
Posted by:  Jeremy Darling (jdarli…@eonclash.com)
Date: Tue, 25 Oct 2005

After reading (a while back) the messages about using the WMQ for P/C Queues
it got my curiosities up.  I started taking the code I was working on for a
generic P/C Queue and converting it to use the WMQ as the transport mech.
This brings up a question that I can't seem to find a definate answer to "By
default is the WMQ thread safe".  Let me clarify my question as I know it
sounds ignorant :).  When calling post or send does windows handle the
locking behind the scenes or do you have to perform the locking yourself?
Reading obviously requires locking long enough to pop the message off the
stack and compressing the stack (as well as updating the Pool).  But how
about the actual post :).

Jeremy

Replies