The Pedigree Project
0.1
|
#include <PosixSubsystem.h>
Public Member Functions | |
size_t | allocateGroupId () |
void | setGroupId (size_t gid) |
bool | isGroupIdValid (size_t gid) const |
void | returnGroupId (size_t gid) |
Static Public Member Functions | |
static ProcessGroupManager & | instance () |
Private Attributes | |
ExtensibleBitmap | m_GroupIds |
Static Private Attributes | |
static ProcessGroupManager | m_Instance |
Process group ID control.
Definition at line 73 of file PosixSubsystem.h.
size_t ProcessGroupManager::allocateGroupId | ( | ) |
Allocates a new process group ID, that hasn't yet been used.
Definition at line 85 of file PosixSubsystem.cc.
bool ProcessGroupManager::isGroupIdValid | ( | size_t | gid | ) | const |
Checks whether the given process group ID is used or not.
Definition at line 102 of file PosixSubsystem.cc.
void ProcessGroupManager::returnGroupId | ( | size_t | gid | ) |
Returns the given process group ID to the available pool.
Definition at line 107 of file PosixSubsystem.cc.
void ProcessGroupManager::setGroupId | ( | size_t | gid | ) |
Forcibly set the given group ID as taken.
Definition at line 92 of file PosixSubsystem.cc.
Referenced by PosixProcess::PosixProcess().
|
private |
Bitmap of available group IDs.
Definition at line 101 of file PosixSubsystem.h.