TSDuck v3.40-3963
MPEG Transport Stream Toolkit
|
Parameters and command line arguments for asynchronous log. More...
#include <tsAsyncReportArgs.h>
Public Member Functions | |
AsyncReportArgs ()=default | |
Default constructor. | |
void | defineArgs (Args &args) |
Add command line option definitions in an Args. | |
bool | loadArgs (DuckContext &duck, Args &args) |
Load arguments from command line. | |
Public Attributes | |
size_t | log_msg_count = MAX_LOG_MESSAGES |
Maximum buffered log messages. | |
bool | sync_log = false |
Synchronous log. | |
bool | timed_log = false |
Add time stamps in log messages. | |
Static Public Attributes | |
static constexpr size_t | MAX_LOG_MESSAGES = 512 |
Default maximum number of messages in the queue. | |
Parameters and command line arguments for asynchronous log.
void ts::AsyncReportArgs::defineArgs | ( | Args & | args | ) |
Add command line option definitions in an Args.
[in,out] | args | Command line arguments to update. |
bool ts::AsyncReportArgs::loadArgs | ( | DuckContext & | duck, |
Args & | args | ||
) |
Load arguments from command line.
Args error indicator is set in case of incorrect arguments.
[in,out] | duck | TSDuck execution context. |
[in,out] | args | Command line arguments. |
|
staticconstexpr |
Default maximum number of messages in the queue.
Must be limited since the logging thread has a low priority. If a high priority thread loops on report, it would exhaust the memory.