Per instance would mean to need an algorithm to automatically define a
new Mutex when creating an instance.
So maybe the TSynchronizedObject that might be the parent of all
class(...) synchronized will define a TSynchronizedObject.Create that
creates a Class-common or a system wide Mutex, while the create in a
child class can modify this behavior to the use of an instance variable
as the Mutex to have a per-instance protection.
-Michael
_______________________________________________
fpc-devel maillist - fpc-devel@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-devel