ProcessID Class Reference#include <ProcessID.h>
List of all members.
Detailed Description
this is a class instead of a namespace so i can limit write access of the ID value to the OObjects
Although the ProcessID_t enum specifies the maximum number of processes in its NumProcesses value, this doesn't have to correspond to the actual number of active processes. If you want an element of dynamicism to launch and/or close processes at runtime, simply increase the NumProcesses to a higher value so that space can be allocated for those processes in shared memory regions for things like attachment pointers or other per-process data.
Not all processes *need* to have a named id, they just need a unique id.
Definition at line 17 of file ProcessID.h.
Member Enumeration Documentation
|
Holds ID number for each process.
- Enumerator:
-
MainProcess |
MainObj process. |
MotionProcess |
MotoObj process. |
SoundProcess |
SoundPlay process. |
NumProcesses |
maximum number of 'friendly' processes -- see class docs |
Definition at line 20 of file ProcessID.h. |
Member Function Documentation
static ProcessID_t ProcessID::getID |
( |
|
) |
[inline, static] |
|
|
returns process's ID number, or if within a virtual function on a shared object, the process which created it (annoying)
Definition at line 30 of file ProcessID.h.
Referenced by SharedQueue< maxsize, maxentries >::clear(), SoundManager::CopyTo(), SharedObject< UPennWalkMC >::createRCRegion(), SoundManager::GetRemainTime(), SoundManager::InitAccess(), SoundManager::initRegion(), SoundManager::LoadBuffer(), SoundManager::LoadFile(), LockScope< num_doors >::LockScope(), SoundManager::PausePlay(), SoundManager::PlayBuffer(), SoundManager::PlayFile(), SoundManager::ReleaseFile(), SharedQueue< maxsize, maxentries >::reserve(), SoundManager::ResumePlay(), SoundManager::SetMode(), and SoundManager::StopPlay(). |
static void ProcessID::setID |
( |
ProcessID_t |
id |
) |
[inline, static] |
|
|
sets the ID during init (be careful you know what you're doing if you call this)
Definition at line 31 of file ProcessID.h. |
Member Data Documentation
The documentation for this class was generated from the following files:
|