Title: Message
I the Delphi documentation it says that instances of TCriticalSection and TMultiReadExclusiveWriteSynchronizer must be global.
 
Does this mean that they really have to be global (if so why?) or do they just have to be available to all who are interested?
 
In my case I have an object which is accessed my multiple threads.
I have the TCriticalSection as a property of the object.
Each thread can go Object1.RequestLock.Acquire and then do whatever it needs to.
 
Is this OK?
 
Stacey
 
Stacey Verner             Ph:   +64-9-4154790
Software Developer        Fax:  +64-9-4154791
                          DDI:  +64-9-4154797
CJN Technologies Ltd.     Email:
[EMAIL PROTECTED]
PO Box 302-278, North Harbour, Auckland 1330, New Zealand
12 Piermark Drive, North Harbour, Auckland, New Zealand
Visit our website at
http://www.cjntech.co.nz/
 
_______________________________________________
Delphi mailing list
[EMAIL PROTECTED]
http://ns3.123.co.nz/mailman/listinfo/delphi

Reply via email to