Is QueueAsyncCall() threadsafe?
Let's say I have a communications child thread and I want to trigger a call back in the main GUI
thread. Traditionally I'd do something ugly like have a timer polling a variable used as a flag, or
polling a RtlEvent on a short timeout, but this seems like a much nicer solution.
Also, is there any form of mutex or lock I can use to protect access to a linked list shared between
threads? It would appear that RTLCriticalSection might do what I want.
Regards,
Brad
--
Dolphins are so intelligent that within a few weeks they can
train Americans to stand at the edge of the pool and throw them
fish.
--
_______________________________________________
Lazarus mailing list
[email protected]
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus