TSDuck v3.40-3963
MPEG Transport Stream Toolkit
Loading...
Searching...
No Matches
ts::SignalAllocator Class Reference

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

#include <tsSignalAllocator.h>

Public Member Functions

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

Static Public Member Functions

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

Detailed Description

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

Member Function Documentation

◆ Instance()

static SignalAllocator & ts::SignalAllocator::Instance ( )
inlinestatic

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: