Logo Search packages:      
Sourcecode: pwlib version File versions

PProcess & PProcess::Current (  )  [static]

Get the current processes object instance. The { current process} is the one the application is running in.

Returns:
pointer to current process instance.

Reimplemented from PThread.

Reimplemented in PServiceProcess.

Definition at line 2041 of file osutils.cxx.

Referenced by PThread::Current(), PServiceProcess::Current(), PVideoInputDevice_FakeVideo::GrabTextVideoFrame(), PTrace::Initialise(), PIpAccessControlList::LoadHostsAccess(), PURL::OpenBrowser(), PThread::PThread(), and PThread::SetAutoDelete().

{
  if (PProcessInstance == NULL) {
    cerr << "Catastrophic failure, PProcess::Current() = NULL!!\n";
#if defined(_MSC_VER) && defined(_DEBUG) && !defined(_WIN32_WCE)
    __asm int 3;
#endif
    _exit(1);
  }
  return *PProcessInstance;
}


Generated by  Doxygen 1.6.0   Back to index