On 8/24/2012 14:57, Jorge Aldo G. de F. Junior wrote:
[trim]
When the object issues request it has to keep looping (until timeout)
and dequeueing the last message from the mailbox, inspecting its
transaction id for a match and requeueing the same message back into
the mailbox if theres no match.
while working on my actor model concurrency for freepascal i met the
following problem.
Each actor has a mailbox, that is made of the following components :
A standard TObjectQueue wich holds the messages
A TMultiReadExclusiveWriteSynchronizer that avoids race conditions
while acessing the TObjec