[fpc-devel] Safely shareable objects

Andrew Brunner andrew.t.brunner at gmail.com
Sat Jul 2 05:18:50 CEST 2011


Another problem may be that more often then not another thread may
want to acquire a new object reference.  What is the status of the
cMem memory manager / with/without?  Can one thread create an object
and be freed by another thread?  What about stacks?  I know you can
attach events to threads using an APC queue call under windows.  Using
that, the owner thread could pickup that callback and create an object
instance, and then a mechanism can trigger the function to return
(watch out for thread lock here)

These are some questions I would raise.



More information about the fpc-devel mailing list