Thrill  0.1
porting.hpp File Reference
#include <thrill/common/logger.hpp>
#include <string>
#include <system_error>
#include <thread>
#include <dirent.h>
+ Include dependency graph for porting.hpp:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Namespaces

 thrill
 
 thrill::common
 Contains many common tools and helpers shared by higher layers. See common.
 

Macros

#define THRILL_COMMON_PORTING_HEADER
 

Functions

template<typename... Args>
std::thread CreateThread (Args &&... args)
 create a std::thread and repeat creation if it fails More...
 
std::string GetHostname ()
 get hostname More...
 
void LogCmdlineParams (JsonLogger &logger)
 
void MakePipe (int out_pipefds[2])
 create a pair of pipe file descriptors More...
 
void PortSetCloseOnExec (int fd)
 set FD_CLOEXEC on file descriptor (if possible) More...
 
void SetCpuAffinity (std::thread &thread, size_t cpu_id)
 set cpu/core affinity of a thread More...
 
void SetCpuAffinity (size_t cpu_id)
 set cpu/core affinity of current thread More...
 
struct dirent * ts_readdir (DIR *dirp)
 mutex-locked readdir() call More...
 

Macro Definition Documentation

◆ THRILL_COMMON_PORTING_HEADER

#define THRILL_COMMON_PORTING_HEADER

Definition at line 13 of file porting.hpp.