RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
TGraphicsObject.OwnerCriticalSection Property

Points to information about the critical section that the canvas which draws with this graphics object uses to lock out other threads.

Pascal
property OwnerCriticalSection: PRTLCriticalSection;
C++
__property PRTLCriticalSection OwnerCriticalSection;

Use OwnerCriticalSection to obtain information about the thread locking state of the canvas that draws with this graphics object. The canvas sets OwnerCriticalSection when it creates the graphics object. Do not change this property while the canvas is using the graphics object.  

If the graphics object is created on behalf of a drawing surface that is not a canvas, set OwnerCriticalSection to an initialized TRTLCriticalSection that is maintained by the drawing surface. 

To use OwnerCriticalSection to block other execution threads, use the Lock method. 

 

Copyright(C) 2009 Embarcadero Technologies, Inc. All Rights Reserved.
What do you think about this topic? Send feedback!