Back to index

salome-kernel  6.5.0
Public Member Functions | Static Public Member Functions | Public Attributes | Protected Member Functions | Static Protected Attributes | Private Attributes | Static Private Attributes
SALOMELOCALTRACE_EXPORT Protocol Reference

See derived Classes in SALOMELocalTrace for usage without CORBA, see derived Classes in SALOMETraceCollector for usage with CORBA. More...

#include <BaseTraceCollector.hxx>

Collaboration diagram for SALOMELOCALTRACE_EXPORT:
Collaboration graph
[legend]

List of all members.

Public Member Functions

virtual ~BaseTraceCollector ()
 ~FileTraceCollector ()
int insert (int traceType, const char *msg)
int retrieve (LocalTrace_TraceInfo &aTrace)
unsigned long toCollect ()
 ~LocalTraceCollector ()

Static Public Member Functions

static BaseTraceCollectorinstance (const char *fileName)
static void * run (void *bid)
static LocalTraceBufferPoolinstance ()
static BaseTraceCollectorinstance ()
static void * run (void *bid)

Public Attributes

char trace [MAX_TRACE_LENGTH]
pthread_t threadId
int traceType
int position

Protected Member Functions

 BaseTraceCollector ()
 FileTraceCollector ()
 LocalTraceBufferPool ()
virtual ~LocalTraceBufferPool ()
unsigned long lockedIncrement (unsigned long &pos)
 LocalTraceCollector ()

Static Protected Attributes

static int _threadToClose
static BaseTraceCollector_singleton
static pthread_mutex_t _singletonMutex
static pthread_t * _threadId
static sem_t _sem
static std::string _fileName

Private Attributes

LocalTrace_TraceInfo _myBuffer [TRACE_BUFFER_SIZE]
sem_t _freeBufferSemaphore
sem_t _fullBufferSemaphore
pthread_mutex_t _incrementMutex
unsigned long _position
unsigned long _insertPos
unsigned long _retrievePos

Static Private Attributes

static LocalTraceBufferPool_singleton
static BaseTraceCollector_myThreadTrace

Detailed Description

See derived Classes in SALOMELocalTrace for usage without CORBA, see derived Classes in SALOMETraceCollector for usage with CORBA.

See also other derived Classes in SALOMELocalTrace for usage without CORBA, see also derived Classes in SALOMETraceCollector for usage with CORBA.

Definition at line 39 of file BaseTraceCollector.hxx.


Constructor & Destructor Documentation

virtual SALOMELOCALTRACE_EXPORT::~LocalTraceBufferPool ( ) [protected, virtual]

Member Function Documentation

int SALOMELOCALTRACE_EXPORT::insert ( int  traceType,
const char *  msg 
)
static BaseTraceCollector* SALOMELOCALTRACE_EXPORT::instance ( const char *  fileName) [static]
unsigned long SALOMELOCALTRACE_EXPORT::lockedIncrement ( unsigned long &  pos) [protected]
int SALOMELOCALTRACE_EXPORT::retrieve ( LocalTrace_TraceInfo &  aTrace)
static void* SALOMELOCALTRACE_EXPORT::run ( void *  bid) [static]
static void* SALOMELOCALTRACE_EXPORT::run ( void *  bid) [static]

Member Data Documentation

std::string SALOMELOCALTRACE_EXPORT::_fileName [static, protected]

Definition at line 50 of file FileTraceCollector.hxx.

Definition at line 71 of file LocalTraceBufferPool.hxx.

Definition at line 72 of file LocalTraceBufferPool.hxx.

pthread_mutex_t SALOMELOCALTRACE_EXPORT::_incrementMutex [private]

Definition at line 73 of file LocalTraceBufferPool.hxx.

unsigned long SALOMELOCALTRACE_EXPORT::_insertPos [private]

Definition at line 75 of file LocalTraceBufferPool.hxx.

LocalTrace_TraceInfo SALOMELOCALTRACE_EXPORT::_myBuffer[TRACE_BUFFER_SIZE] [private]

Definition at line 70 of file LocalTraceBufferPool.hxx.

Definition at line 68 of file LocalTraceBufferPool.hxx.

unsigned long SALOMELOCALTRACE_EXPORT::_position [private]

Definition at line 74 of file LocalTraceBufferPool.hxx.

unsigned long SALOMELOCALTRACE_EXPORT::_retrievePos [private]

Definition at line 76 of file LocalTraceBufferPool.hxx.

sem_t SALOMELOCALTRACE_EXPORT::_sem [static, protected]

Definition at line 51 of file BaseTraceCollector.hxx.

Definition at line 48 of file BaseTraceCollector.hxx.

Definition at line 66 of file LocalTraceBufferPool.hxx.

static pthread_mutex_t SALOMELOCALTRACE_EXPORT::_singletonMutex [static, protected]

Definition at line 49 of file BaseTraceCollector.hxx.

pthread_t* SALOMELOCALTRACE_EXPORT::_threadId [static, protected]

Definition at line 50 of file BaseTraceCollector.hxx.

int SALOMELOCALTRACE_EXPORT::_threadToClose [static, protected]

Definition at line 47 of file BaseTraceCollector.hxx.

Definition at line 49 of file LocalTraceBufferPool.hxx.

Definition at line 47 of file LocalTraceBufferPool.hxx.

Definition at line 46 of file LocalTraceBufferPool.hxx.

Definition at line 48 of file LocalTraceBufferPool.hxx.


The documentation for this protocol was generated from the following files: