Hermes 0.7.0
Linux game streaming host
Loading...
Searching...
No Matches
process_group.h File Reference

Non-destructive process-group liveness checks and bounded cleanup helpers. More...

#include <algorithm>
#include <cerrno>
#include <chrono>
#include <csignal>
#include <cstdint>
#include <limits>
#include <sys/wait.h>
#include <thread>
#include <unistd.h>
Include dependency graph for process_group.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

template<class Running>
bool platf::process_group::wait_for_exit (Running running, std::chrono::steady_clock::duration timeout)
bool platf::process_group::valid (std::uintptr_t handle)
bool platf::process_group::running (std::uintptr_t handle)
bool platf::process_group::signal (std::uintptr_t handle, int sig)
void platf::process_group::reap_children (std::uintptr_t handle)

Detailed Description

Non-destructive process-group liveness checks and bounded cleanup helpers.

Definition in file process_group.h.

Function Documentation

◆ reap_children()

void platf::process_group::reap_children ( std::uintptr_t handle)
inline

Definition at line 66 of file process_group.h.

◆ running()

bool platf::process_group::running ( std::uintptr_t handle)
inline

Definition at line 38 of file process_group.h.

◆ signal()

bool platf::process_group::signal ( std::uintptr_t handle,
int sig )
inline

Definition at line 52 of file process_group.h.

◆ valid()

bool platf::process_group::valid ( std::uintptr_t handle)
inline

Definition at line 32 of file process_group.h.

◆ wait_for_exit()

template<class Running>
bool platf::process_group::wait_for_exit ( Running running,
std::chrono::steady_clock::duration timeout )

Poll a child or a whole group without blocking waitpid beyond its deadline.

Definition at line 20 of file process_group.h.