Apache Mesos
Functions
os::signal_safe Namespace Reference

Functions

pid_t clone (const Stack &stack, int flags, const lambda::function< int()> &func)
 
ssize_t write_impl (int_fd fd, const char *buffer, size_t count)
 
ssize_t write (int_fd fd, const char *message)
 
ssize_t write (int_fd fd, const std::string &message)
 Performs a series of asynchronous writes, until all of data has been written. More...
 
template<typename T , typename... Args>
ssize_t write (int_fd fd, const T &message, Args...args)
 

Function Documentation

pid_t os::signal_safe::clone ( const Stack stack,
int  flags,
const lambda::function< int()> &  func 
)
inline
ssize_t os::signal_safe::write ( int_fd  fd,
const char *  message 
)
inline
ssize_t os::signal_safe::write ( int_fd  fd,
const std::string &  data 
)
inline

Performs a series of asynchronous writes, until all of data has been written.

Returns
Nothing or a failure if an error occurred. A failure will be returned if the file descriptor is bad, or if the file descriptor cannot be duplicated, set to close-on-exec, or made non-blocking.
template<typename T , typename... Args>
ssize_t os::signal_safe::write ( int_fd  fd,
const T &  message,
Args...  args 
)
inline
ssize_t os::signal_safe::write_impl ( int_fd  fd,
const char *  buffer,
size_t  count 
)
inline