---
name: "LOCK_VARIABLE"
section: "3alleg4"
platform: "linux"
package: "allegro4-doc"
version: "2:4.4.3.1-5"
release: "Debian 13 (Trixie)"
platforms: ["linux"]
url: "https://new.carta.tech/LOCK_VARIABLE/3alleg4"
---

# LOCK\_VARIABLE(3alleg4)

Locks the memory of a variable used by a timer. Allegro game programming library.

## NAME

LOCK\_VARIABLE - Locks the memory of a variable used by a timer. Allegro game programming library.

## SYNOPSIS

**#include \<allegro.h\>**

**Macro LOCK\_VARIABLE(variable\_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), **exscn3d**(3alleg4), **exsprite**(3alleg4), **exswitch**(3alleg4), **extimer**(3alleg4), **exupdate**(3alleg4), **exzbuf**(3alleg4)
