wavelength 1.0.0
Loading...
Searching...
No Matches
SynthLock Class Reference

The binary semaphore that stops the tick thread and the RPC server from entering the synthesiser at the same time. More...

#include <synthlock.h>

Static Public Member Functions

static void Create ()
 Create the semaphore, available.
static void Destroy ()
 Delete the semaphore.
static void Lock (const char *owner)
 Wait for the semaphore and take it.
static void Unlock (const char *owner)
 Give the semaphore back.

Detailed Description

The binary semaphore that stops the tick thread and the RPC server from entering the synthesiser at the same time.

The class has no RTTI, and its name is inferred from its role. Every member is static. Lock() and Unlock() take the name of the holder for debugging, and ignore it.

Member Function Documentation

◆ Create()

void SynthLock::Create ( )
static

Create the semaphore, available.

Ghidra address:
NTSC-U/C: 0x00005d30
Ghidra address:
PAL: 0x00005d30

◆ Destroy()

void SynthLock::Destroy ( )
static

Delete the semaphore.

Ghidra address:
NTSC-U/C: 0x00005d70
Ghidra address:
PAL: 0x00005d70

◆ Lock()

void SynthLock::Lock ( const char * owner)
static

Wait for the semaphore and take it.

Parameters
ownerName of the holder.
Ghidra address:
NTSC-U/C: 0x00005d98
Ghidra address:
PAL: 0x00005d98

◆ Unlock()

void SynthLock::Unlock ( const char * owner)
static

Give the semaphore back.

Parameters
ownerName of the holder.
Ghidra address:
NTSC-U/C: 0x00005dc0
Ghidra address:
PAL: 0x00005dc0

The documentation for this class was generated from the following file: