Unit 'layers' Package
[Overview][Constants][Types][Procedures and functions][Variables][Index] [#os4units]

LockLayer

Lock layer to make changes to ClipRects.

Declaration

Source position: layers.pas line 166

procedure LockLayer(

  Dummy: LongInt;

  Layer: PLayer

);

Arguments

Dummy

  

unused

Layer

  

pointer to a layer

Description

Make this layer unavailable for other tasks to use. If another task is already using this layer then wait for it to complete and then reserve the layer for your own use. (this function does the same thing as graphics.library/LockLayerRom)

Atention

if you wish to lock more than one layer at a time, you must call LockLayerInfo() before locking those layers and then call UnlockLayerInfo() when you have finished. This is to prevent system "deadlocks".

while you hold the lock on a layer, Intuition will block on operations such as windowsizing, dragging, menus, and depth arranging windows in this layer's screen. It is recommended that you do not make Intuition function calls while the layer is locked.


Documentation generated on: 2021-07-30