Skip to content
Justin Schwartz edited this page Jun 27, 2020 · 4 revisions

lock

  • ACE Inline Expansion*

Lock the module's mutex.

Provides support for an automatic global-level mutex.

This mutex is recursive, so may be locked multiple times in the same thread without blocking. You must call $unlock() an equal number of times to give other threads access.

The mutex is initialized after "load-first" blocks, and may not be accessed in load-first blocks. It is destroyed before "unload-last" blocks, and may not be accessed in unload-last blocks.

Valid Syntax

  • $lock()

Parameters

There are no parameters to this inline expansion.

Clone this wiki locally