mirror of
https://github.com/boostorg/process.git
synced 2026-01-19 16:32:15 +00:00
24 lines
619 B
Plaintext
24 lines
619 B
Plaintext
== `pid.hpp`
|
|
[#pid]
|
|
|
|
[source,cpp]
|
|
----
|
|
//An integral type representing a process id.
|
|
typedef implementation_defined pid_type;
|
|
|
|
// Get the process id of the current process.
|
|
pid_type current_pid();
|
|
|
|
// List all available pids.
|
|
std::vector<pid_type> all_pids(boost::system::error_code & ec);
|
|
std::vector<pid_type> all_pids();
|
|
|
|
// return parent pid of pid.
|
|
pid_type parent_pid(pid_type pid, boost::system::error_code & ec);
|
|
pid_type parent_pid(pid_type pid);
|
|
|
|
// return child pids of pid.
|
|
std::vector<pid_type> child_pids(pid_type pid, boost::system::error_code & ec);
|
|
std::vector<pid_type> child_pids(pid_type pid);
|
|
----
|