Eine aufbereitete Darstellung der Quelle

 
     
 
 
Anforderungen  |   Konzepte  |   Entwurf  |   Entwicklung  |   Qualitätssicherung  |   Lebenszyklus  |   Steuerung
 
 
 
 

Benutzer

Impressum syssingleton.C   Sprache: unbekannt

 
#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;
}

Messung V0.5 in Prozent
C=93 H=90 G=91

[Seitenstruktur0.5Druckenetwas mehr zur Ethik2026-06-07]

                                                                                                                                                                                                                                                                                                                                                                                                     


Neuigkeiten

     Aktuelles
     Motto des Tages

Open Source Software

     Quellcodebibliothek
     Eigene Quellcodes
     Fremde Quellcodes
     Suchen

Jenseits des Üblichen ....

Besucherstatistik

Besucherstatistik

Statistik
#Sources=434850
#Domains=655579