Tekkotsu Homepage
Demos
Overview
Downloads
Dev. Resources
Reference
Credits

ProcessID.cc File Reference

Declares the static ProcessID::ID, that's all. More...

#include "ProcessID.h"
#include <cstddef>
Include dependency graph for ProcessID.cc:

Go to the source code of this file.

Namespaces

namespace  ProcessID
 

holds information to identify currently running process


Functions

ProcessID_t ProcessID::getUnhookedID ()
 returns process's ID number from static global, the default behavior if setIDHooks was passed NULL
void ProcessID::setUnhookedID (ProcessID_t id)
 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
ProcessID_t ProcessID::getID ()
 returns process's ID number, subject to overriding via setIDHooks()
void ProcessID::setID (ProcessID_t id)
 sets the ID during init (be careful you know what you're doing if you call this), subject to overriding via setIDHooks()
void ProcessID::setIDHooks (ProcessID_t(*customGetID)(), void(*customSetID)(ProcessID_t id))
 allows you to override the behavior of getID and setID -- pass NULL to use default behavior

Variables

ProcessID_t ProcessID::ID = NumProcesses
 holds ID number
ProcessID_t(* ProcessID::getIDHook )() = &getUnhookedID
 hook allows overriding the ID system, set with ProcessID::setIDHooks
void(* ProcessID::setIDHook )(ProcessID_t id) = &setUnhookedID
 hook allows overriding the ID system, set with ProcessID::setIDHooks

Detailed Description

Declares the static ProcessID::ID, that's all.

Author:
ejt (Creator)

Definition in file ProcessID.cc.


Tekkotsu v5.1CVS
Generated Mon May 9 04:59:01 2016 by Doxygen 1.6.3