LMMS
Loading...
Searching...
No Matches
CarlaPipeUtils.cpp File Reference
#include "CarlaPipeUtils.hpp"
#include "CarlaProcessUtils.hpp"
#include "CarlaString.hpp"
#include "CarlaTimeUtils.hpp"
#include "CarlaMIDI.h"
#include "lv2/atom/util.h"
#include <fcntl.h>
#include <cerrno>
#include <signal.h>
#include <sys/wait.h>

Go to the source code of this file.

Classes

struct  CarlaPipeCommon::PrivateData

Macros

#define NULL   nullptr
#define INVALID_PIPE_VALUE   -1

Functions

static bool startProcess (const char *const argv[], pid_t &pidinst) noexcept
template<typename P>
static bool waitForClientFirstMessage (const P &pipe, void *const ovRecv, void *const process, const uint32_t timeOutMilliseconds) noexcept
static bool waitForChildToStop (const pid_t pid, const uint32_t timeOutMilliseconds, bool sendTerminate) noexcept
static void waitForChildToStopOrKillIt (pid_t &pid, const uint32_t timeOutMilliseconds) noexcept

Macro Definition Documentation

◆ INVALID_PIPE_VALUE

#define INVALID_PIPE_VALUE   -1

◆ NULL

#define NULL   nullptr

Function Documentation

◆ startProcess()

bool startProcess ( const char *const argv[],
pid_t & pidinst )
inlinestaticnoexcept

◆ waitForChildToStop()

bool waitForChildToStop ( const pid_t pid,
const uint32_t timeOutMilliseconds,
bool sendTerminate )
inlinestaticnoexcept

◆ waitForChildToStopOrKillIt()

void waitForChildToStopOrKillIt ( pid_t & pid,
const uint32_t timeOutMilliseconds )
inlinestaticnoexcept

◆ waitForClientFirstMessage()

template<typename P>
bool waitForClientFirstMessage ( const P & pipe,
void *const ovRecv,
void *const process,
const uint32_t timeOutMilliseconds )
inlinestaticnoexcept