Unit 'agraphics' Package
[Overview][Constants][Types][Procedures and functions][Variables][Index] [#amunits]

OwnBlitter

get the blitter for private usage

Declaration

Source position: agraphics.pas line 2362

procedure OwnBlitter;

Description

If blitter is available return immediately with the blitter locked for your exclusive use. If the blitter is not available put task to sleep. It will be awakened as soon as the blitter is available. When the task first owns the blitter the blitter may still be finishing up a blit for the previous owner. You must do a WaitBlit() before actually using the blitter registers.

Calls to OwnBlitter() do not nest. If a task that owns the blitter calls OwnBlitter() again, a lockup will result. (Same situation if the task calls a system function that tries to own the blitter).

It is good practice to start the blitter immediately after calling this function and then call DisownBlitter() so other tasks can use the blitter.

See also

DisOwnBlitter

  

Returns blitter to free state.

WaitBlit

  

Wait for the blitter to be finished before proceeding with anything else.


Documentation generated on: 2021-07-30