PdDestroyOffscreenLock()

Destroy a lock for an offscreen context

Synopsis:

int PdDestroyOffscreenLock(
       PdOffscreenContext_t *osc );

Arguments:

osc
A pointer to the PdOffscreenContext_t structure for an offscreen context, as returned by PdCreateOffscreenContext().

Library:

ph

Description:

This function removes an offscreen lock from the offscreen context, osc.


Note: If you've locked the context, call PdUnlockOffscreen() to unlock it before destroying the lock.

Returns:

EOK
The lock was successfully destroyed.
Pg_OSC_LOCK_INVALID
The lock didn't exist.

Classification:

Photon

Safety:
Interrupt handler No
Signal handler No
Thread No

See also:

PdCreateOffscreenContext(), PdCreateOffscreenLock(), PdGetOffscreenContextPtr(), PdIsOffscreenLocked(), PdLockOffscreen(), PdUnlockOffscreen()

Offscreen locks in the Raw Drawing and Animation chapter of the Photon Programmer's Guide