Tekkotsu Homepage | Demos | Overview | Downloads | Dev. Resources | Reference | Credits |
ProcessID Namespace ReferenceDetailed Descriptionholds information to identify currently running processAlthough 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.
Enumeration Type DocumentationHolds ID number for each process.
Definition at line 23 of file ProcessID.h.
Function Documentation
returns process's ID number, subject to overriding via setIDHooks()
Definition at line 23 of file ProcessID.cc. Referenced by RCRegion::aboutToFork(), MessageQueueBase::addMessageFilter(), RCRegion::AddReference(), SharedObject< UPennWalkMC >::createRCRegion(), WorldStatePool::doReleaseResource(), WorldStatePool::doUseResource(), RegionRegistry< MAX_REGIONS, NAME_LEN >::erase(), MotionManager::getAccID(), WorldStatePool::getCurrentWriteState(), getIDStr(), Thread::handle_exit(), SoundManager::InitAccess(), MotionManager::InitAccess(), SoundManager::initRegion(), SoundManager::loadBuffer(), RCRegion::NumberOfLocalReference(), WorldStateLookup::operator *(), WorldStateLookup::operator WorldState *&(), WorldStateLookup::operator->(), WorldStateLookup::operator=(), RegionRegistry< MAX_REGIONS, NAME_LEN >::operator[](), SoundManager::play(), EventRouter::processEvent(), MotionManager::processMsg(), RCRegion::RCRegion(), RegionRegistry< MAX_REGIONS, NAME_LEN >::registerRegion(), SoundManager::release(), MessageQueueBase::removeMessageFilter(), MotionManager::removeMotion(), RCRegion::RemoveReference(), MessageQueue< MAX_UNREAD, MAX_RECEIVERS, MAX_SENDERS >::sendMessage(), Thread::testCancel(), MutexLock< MAX_ACCESS >::useResource(), and WorldStatePool::WorldStatePool().
returns a string version of the name of the process
Definition at line 48 of file ProcessID.h. Referenced by MotionManager::checkoutMotion(), WorldState::chkEvent(), WorldStatePool::isUnread(), MotionManager::processMsg(), WorldStatePool::read(), MotionManager::RemoveAccess(), and MotionManager::removeMotion().
returns process's ID number from static global, the default behavior if setIDHooks was passed NULL
Definition at line 16 of file ProcessID.cc. Referenced by setIDHooks().
sets the ID during init (be careful you know what you're doing if you call this), subject to overriding via setIDHooks()
Definition at line 25 of file ProcessID.cc.
allows you to override the behavior of getID and setID -- pass NULL to use default behavior
Definition at line 27 of file ProcessID.cc.
sets the ID into static global (be careful you know what you're doing if you call this), this is the default behavior if setIDHooks was passed NULL
Definition at line 17 of file ProcessID.cc. Referenced by setIDHooks().
Variable Documentation
hook allows overriding the ID system, set with ProcessID::setIDHooks
Referenced by getID(), and setIDHooks().
holds ID number
Definition at line 13 of file ProcessID.cc. Referenced by getUnhookedID(), and setUnhookedID().
|
Tekkotsu v4.0 |
Generated Thu Nov 22 00:58:58 2007 by Doxygen 1.5.4 |