Class CSPThreadLock
Description
This class prevents thread sensitive code from being executed at the same time by different threads.
 |
Derives: class CSPThreadLockBase
Member functions:
Remarks:
When you want to protect a thread sensitive code segment, you must not define the thread lock objects localy to the protected code. If you do so, on every execution of this code by a thread, a new, separate thread lock object will be created localy providing actually no protection at all.
This class is an overload of class CSPThreadLockBase
See also:
The thread locking objects that protect a thread sensitive code segment must not be defined localy to the protected code.
|
|