ISInterface:FrameLock

From Lavish Software Wiki
Jump to navigation Jump to search

Syntax

  • void FrameLock()

Purpose

With usage akin to EnterCriticalSection, this function acquires a lock on frame from the main thread. You should probably not call this from the main thread, as it may deadlock :) It is designed to run from your own threads to ensure game synchronization safety.

Usage

Parameters

none

Return Value

none

Examples

Example code
pISInterface->FrameLock();
/* Safe to assume all game objects still exist until FrameUnlock is called */
... do stuff here
pISInterface->FrameUnlock();

See Also