BloombergLP::balb::PipeControlChannel::start

start overloads

Synopses

Declared in <balb_pipecontrolchannel.h>

Open a named pipe having the specified pipeName, and start a thread to read messages and dispatch them to the callback specified at construction. Optionally specify attributes of the background processing thread. If attributes is not supplied, a default constructed ThreadAttributes object will be used. Return 0 on success, and a non-zero value otherwise. In particular, return a non-zero value if the pipe cannot be opened or if it is detected that another process is reading from the pipe. pipeName must be of the types const char *, char *, bsl::string, std::string, std::pmr::string (if supported), or bslstl::StringRef.

int
start(char const* pipeName);
» more...

Same as the preceding overload, accepting a STRING_TYPE pipe name.

template<class STRING_TYPE>
int
start(STRING_TYPE const& pipeName);
» more...

Same as the first overload, with the specified thread attributes.

int
start(
    char const* pipeName,
    bslmt::ThreadAttributes const& attributes);
» more...

Same as the third overload, accepting a STRING_TYPE pipe name.

template<class STRING_TYPE>
int
start(
    STRING_TYPE const& pipeName,
    bslmt::ThreadAttributes const& attributes);
» more...