Quellcodebibliothek Statistik Leitseite products/Sources/formale Sprachen/C/Lyx/src/   (Lyx Textverarbeitung ©)  Datei vom 26.9.1998 mit Größe 1 kB image not shown  

Quelle  syssingleton.C   Sprache: C

 
#include <config.h>

#include <stdlib.h>
#include <unistd.h>
#include <sys/wait.h>
#include "syscontr.h"


//----------------------------------------------------------------------
// Ensure, that only one controller exist inside process
//----------------------------------------------------------------------

// global controller variable
SystemcallsSingletoncontroller *
SystemcallsSingletoncontroller::Startcontroller::
contr = NULL;

// reference count
int SystemcallsSingletoncontroller::Startcontroller::
refcount = 0;

// default constructor. 
// Nothing to do at moment.
SystemcallsSingletoncontroller::Startcontroller::
Startcontroller() 
{
}

// default destructor.
// Nothing to do at moment
SystemcallsSingletoncontroller::Startcontroller::
~Startcontroller() 
{
}

// Give reference to global controller-instance
// 
SystemcallsSingletoncontroller *
SystemcallsSingletoncontroller::Startcontroller::
GetController()

 if (! contr) 
  { // generate the global controller
                        contr = new SystemcallsSingletoncontroller;
  }
 refcount++;
 return contr;
}

100%


¤ Dauer der Verarbeitung: 0.15 Sekunden  (vorverarbeitet)  ¤

*© Formatika GbR, Deutschland






Wurzel

Suchen

Beweissystem der NASA

Beweissystem Isabelle

NIST Cobol Testsuite

Cephes Mathematical Library

Wiener Entwicklungsmethode

Haftungshinweis

Die Informationen auf dieser Webseite wurden nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit, noch Qualität der bereit gestellten Informationen zugesichert.

Bemerkung:

Die farbliche Syntaxdarstellung ist noch experimentell.