|
gstreamer
|
Multithreaded example showing how to publish events to gstreamer plugins. More...
#include "gstreamer.h"#include "glogger.h"#include "gdynamicdigitization.h"#include "gutilities.h"#include "gthreads.h"#include <atomic>#include <ranges>#include <vector>#include <memory>#include <unordered_map>
Go to the source code of this file.
Functions | |
| void | run_simulation_in_threads (int nevents, int nthreads, const std::shared_ptr< GLogger > &log, const std::shared_ptr< const gdynamicdigitization::dRoutinesMap > &dynamicRoutinesMap, const std::shared_ptr< GOptions > &gopts) |
| Run a synthetic event simulation in multiple worker threads and publish results via gstreamer. | |
| int | main (int argc, char *argv[]) |
Variables | |
| const std::string | plugin_name = "test_gdynamic_plugin" |
This example demonstrates a typical flow:
Definition in file gstreamer_example.cc.
| int main | ( | int | argc, |
| char * | argv[] ) |
Definition at line 133 of file gstreamer_example.cc.
| void run_simulation_in_threads | ( | int | nevents, |
| int | nthreads, | ||
| const std::shared_ptr< GLogger > & | log, | ||
| const std::shared_ptr< const gdynamicdigitization::dRoutinesMap > & | dynamicRoutinesMap, | ||
| const std::shared_ptr< GOptions > & | gopts ) |
Threading model:
ebuffer option).| nevents | Total number of events to produce across all threads. |
| nthreads | Number of worker threads. |
| log | Logger used for progress and diagnostics. |
| dynamicRoutinesMap | Map of dynamic digitization routines keyed by plugin name. |
| gopts | Options container used to configure streamers and other modules. |
Definition at line 47 of file gstreamer_example.cc.
| const std::string plugin_name = "test_gdynamic_plugin" |
Definition at line 30 of file gstreamer_example.cc.