Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

lock_function(3alleg4) [v7 man page]

LOCK_FUNCTION(3alleg4)						  Allegro manual					    LOCK_FUNCTION(3alleg4)

NAME
LOCK_FUNCTION - Locks the memory of a function used by a timer. Allegro game programming library. SYNOPSIS
#include <allegro.h> Macro LOCK_FUNCTION(function_name); DESCRIPTION
Due to interrupts, you are required to lock all the memory used by your timer routines. See the description of install_int_ex() for a more detailed explanation and usage example. SEE ALSO
install_int(3alleg4), install_int_ex(3alleg4), exkeys(3alleg4), exscn3d(3alleg4), exsprite(3alleg4), exswitch(3alleg4), extimer(3alleg4), exupdate(3alleg4), exzbuf(3alleg4) Allegro version 4.4.2 LOCK_FUNCTION(3alleg4)

Check Out this Related Man Page

extimer(3alleg4)						  Allegro manual						  extimer(3alleg4)

NAME
extimer - Using the timer (delays and interrupts). Allegro game programming library. SYNOPSIS
#include <allegro.h> Example extimer DESCRIPTION
This program demonstrates how to use the timer routines. These can be a bit of a pain, because you have to be sure you lock all the memory that is used inside your interrupt handlers. The first part of the example shows a basic use of timing using the blocking function rest(). The second part shows how to use three timers with different frequencies in a non blocking way. SEE ALSO
END_OF_FUNCTION(3alleg4), END_OF_MAIN(3alleg4), LOCK_FUNCTION(3alleg4), LOCK_VARIABLE(3alleg4), SCREEN_W(3alleg4), allegro_error(3alleg4), allegro_init(3alleg4), allegro_message(3alleg4), clear_to_color(3alleg4), desktop_palette(3alleg4), font(3alleg4), install_int(3alleg4), install_int_ex(3alleg4), install_keyboard(3alleg4), install_timer(3alleg4), key(3alleg4), keypressed(3alleg4), makecol(3alleg4), read- key(3alleg4), rest(3alleg4), screen(3alleg4), set_gfx_mode(3alleg4), set_palette(3alleg4), textprintf_centre_ex(3alleg4) Allegro version 4.4.2 extimer(3alleg4)
Man Page