TSDuck Version 3.32-2769 (TSDuck - The MPEG Transport Stream Toolkit)
ts::SignalAllocator Class Reference

Allocate POSIX real-time signal numbers (Linux-specific). More...

Public Member Functions

int allocate ()
 Allocate a new signal number. More...
 
void release (int sig)
 Release a signal number. More...
 

Static Public Member Functions

static SignalAllocatorInstance ()
 Get the instance of the singleton of this class. More...
 

Detailed Description

Allocate POSIX real-time signal numbers (Linux-specific).

Member Function Documentation

◆ Instance()

static SignalAllocator* ts::SignalAllocator::Instance ( )
static

Get the instance of the singleton of this class.

Returns
The instance of the singleton of this class.

◆ allocate()

int ts::SignalAllocator::allocate ( )

Allocate a new signal number.

Returns
A POSIX real-time signal number or -1 if none available.

◆ release()

void ts::SignalAllocator::release ( int  sig)

Release a signal number.

Parameters
[in]sigA POSIX real-time signal number.

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