A pipe, portable across different OS.
Pipes can be used as intraprocess (inter-threads) or interprocess communication mechanism. Read more on pipes here: http://www.gnu.org/software/libc/manual/html_node/Pipes-and-FIFOs.html
See also the example: MRPT/samples/threadsPipe/
#include <mrpt/synch/CPipe.h>
Static Public Member Functions | |
template<typename ReadPtr , typename WritePtr > | |
static void | createPipe (ReadPtr &outReadPipe, WritePtr &outWritePipe) |
Creates a new pipe and returns the read & write end-points as newly allocated objects. More... | |
static void | initializePipe (CPipeReadEndPoint &outReadPipe, CPipeWriteEndPoint &outWritePipe) |
Creates a new pipe and returns the read & write end-points as newly allocated objects. More... | |
Private Member Functions | |
CPipe () | |
No need to create any object of this class. More... | |
~CPipe () | |
|
private |
No need to create any object of this class.
|
private |
|
static |
Creates a new pipe and returns the read & write end-points as newly allocated objects.
std::exception | On any error during the pipe creation Creates a new pipe and returns the read & write end-points as newly allocated objects. |
Definition at line 161 of file CPipe.h.
References initializePipe().
Referenced by mrpt::hwdrivers::CNationalInstrumentsDAQ::initialize().
|
static |
Creates a new pipe and returns the read & write end-points as newly allocated objects.
Definition at line 30 of file CPipe.cpp.
References mrpt::synch::CPipeBaseEndPoint::m_pipe_file, and THROW_EXCEPTION.
Referenced by createPipe().
Page generated by Doxygen 1.8.14 for MRPT 1.9.9 Git: ae4571287 Thu Nov 23 00:06:53 2017 +0100 at dom oct 27 23:51:55 CET 2019 |