| Miles Sound System SDK 7.2a |
The function AIL_lock suspends timer service to all MSS drivers and application callback functions until a matching call to AIL_unlock is made.
void AIL_lock(); |
Calls to AIL_lock and AIL_unlock should bracket any sections of application code which must not be interrupted by background MSS timer interrupts. Examples would include non-reentrant application functions which may be called from both the foreground application and an MSS timer, XMIDI, or digital sound callback function.
AIL_lock increments a counter which is decremented by each corresponding call to AIL_unlock. When an AIL_unlock call decrements the counter to zero, MSS timer service is resumed.
Under DOS, BIOS system timer service continues while AIL_lock is in effect. The CPU interrupt state is not affected by either AIL_lock or AIL_unlock.
Group:
Timer Services
Related Functions:
AIL_lock, AIL_unlock
Related Basic Types:
void
For technical support, e-mail Miles3@radgametools.com
© Copyright 1991-2007 RAD Game Tools, Inc. All Rights Reserved.