Invoke semaphore arbitration of TIntuitionBase.
Source position: intuition.pas line 3871
function LockIBase( |
DontKnow: LongWord |
):LongWord; |
The result of this function must be passed to UnlockIBase().
Grabs Intuition internal semaphore so that caller may examine TIntuitionBase safely. This function is not a magic "fix all my race conditions" panacea.
The idea here is that you can get the locks Intuition needs before such IntuitionBase fields as ActiveWindow and FirstScreen are changed, or linked lists of windows and screens are changed.
Do Not Get Tricky with this entry point, and do not hold these locks for long, as all Intuition input processing will wait for you to surrender the lock by a call to UnlockIBase().
Note Well: A call to this function must be paired with a subsequent call to UnlockIBase(), and soon, please.
Note Well: Do not call any Intuition functions (nor any graphics, layers, dos, or other high-level system function) while holding this lock.
|
Release a an Intuition lock gotten by LockIBase(). |