The Pedigree Project  0.1
Public Member Functions | Static Public Member Functions | Private Attributes | Static Private Attributes | List of all members
ProcessGroupManager Class Reference

#include <PosixSubsystem.h>

+ Collaboration diagram for ProcessGroupManager:

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 ProcessGroupManagerinstance ()
 

Private Attributes

ExtensibleBitmap m_GroupIds
 

Static Private Attributes

static ProcessGroupManager m_Instance
 

Detailed Description

Process group ID control.

Definition at line 73 of file PosixSubsystem.h.

Member Function Documentation

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().

+ Here is the caller graph for this function:

Member Data Documentation

ExtensibleBitmap ProcessGroupManager::m_GroupIds
private

Bitmap of available group IDs.

Definition at line 101 of file PosixSubsystem.h.


The documentation for this class was generated from the following files: