Re: [fpc-pascal] TObjectQueue with ability to dequeue arbitrary positions

2012-08-25 Thread waldo kitty
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.

[fpc-pascal] TObjectQueue with ability to dequeue arbitrary positions

2012-08-24 Thread Jorge Aldo G. de F. Junior
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