define a context for all components
This commit is contained in:
20
src/com/ZmqContext.cpp
Normal file
20
src/com/ZmqContext.cpp
Normal file
@@ -0,0 +1,20 @@
|
||||
/*
|
||||
* Author:
|
||||
* Sven Czarnian <devel@svcz.de>
|
||||
* Brief:
|
||||
* Implements the zmq context manager
|
||||
* Copyright:
|
||||
* 2021 Sven Czarnian
|
||||
* License:
|
||||
* GNU General Public License v3 (GPLv3)
|
||||
*/
|
||||
|
||||
#include "ZmqContext.h"
|
||||
|
||||
using namespace aman;
|
||||
|
||||
static zmq::context_t __context(2);
|
||||
|
||||
zmq::context_t& ZmqContext::context() {
|
||||
return __context;
|
||||
}
|
||||
Reference in New Issue
Block a user