ngc 1.5.0
 
Loading...
Searching...
No Matches
ngcbTHREAD Class Reference

#include <ngcbTHREAD.hpp>

Inheritance diagram for ngcbTHREAD:
ngcbSTREAM ngcbTIMER ngcdcsACQ testTHREAD ngcbPTIMER

Public Member Functions

 ngcbTHREAD ()
 Normal constructor.
 
 ngcbTHREAD (ngcbTHREAD *app, ngcbPROCESS_T process, void *arg, size_t stack=0)
 Constructor starting a new thread.
 
virtual ~ngcbTHREAD ()
 Destructor.
 
virtual ngcbTHREADNewThread (ngcbTHREAD *app, ngcbPROCESS_T process, void *arg, size_t stack=0)
 Process to be overloaded.
 
int ThrCreate (ngcbTHREAD *app, ngcbPROCESS_T process, void *arg, ngcbTHREAD_T *threadId, size_t stack, char *erms=NULL)
 Thread creation.
 
void ThrExit ()
 Thread exit.
 
int ThrKill (ngcbTHREAD_T threadId, int sig, char *erms=NULL)
 Cancel thread by thread-id.
 
int ThrKill (int sig, char *erms=NULL)
 Cancel this thread.
 
int ThrJoin (ngcbTHREAD_T threadId, char *erms=NULL)
 Wait for a thread.
 
int ThrJoin (char *erms=NULL)
 Wait for this thread.
 
ngcbTHREAD_T ThreadId ()
 Get own thread-Id.
 
int ThrEqual (ngcbTHREAD_T t1, ngcbTHREAD_T t2)
 Test the equality of the two threads t1 and t2.
 
int Initialized ()
 Return flag for successful initialization.
 
int FdOut ()
 Return file descrioptor to wakeup a thread.
 
int FdIn ()
 Return file descriptor to be used by the thread for wakeup call.
 
void * ExecProc ()
 Entry point for c-linkage thread.
 

Detailed Description

Thread class

Constructor & Destructor Documentation

◆ ngcbTHREAD() [1/2]

ngcbTHREAD::ngcbTHREAD ( )

Normal constructor.

◆ ngcbTHREAD() [2/2]

ngcbTHREAD::ngcbTHREAD ( ngcbTHREAD * app,
ngcbPROCESS_T process,
void * arg,
size_t stack = 0 )

Constructor starting a new thread.

◆ ~ngcbTHREAD()

ngcbTHREAD::~ngcbTHREAD ( )
virtual

Destructor.

Member Function Documentation

◆ ExecProc()

void * ngcbTHREAD::ExecProc ( )

Entry point for c-linkage thread.

◆ FdIn()

int ngcbTHREAD::FdIn ( )

Return file descriptor to be used by the thread for wakeup call.

◆ FdOut()

int ngcbTHREAD::FdOut ( )

Return file descrioptor to wakeup a thread.

◆ Initialized()

int ngcbTHREAD::Initialized ( )

Return flag for successful initialization.

◆ NewThread()

ngcbTHREAD * ngcbTHREAD::NewThread ( ngcbTHREAD * app,
ngcbPROCESS_T process,
void * arg,
size_t stack = 0 )
virtual

Process to be overloaded.

◆ ThrCreate()

int ngcbTHREAD::ThrCreate ( ngcbTHREAD * app,
ngcbPROCESS_T process,
void * arg,
ngcbTHREAD_T * threadId,
size_t stack,
char * erms = NULL )

Thread creation.

◆ ThreadId()

ngcbTHREAD_T ngcbTHREAD::ThreadId ( )

Get own thread-Id.

◆ ThrEqual()

int ngcbTHREAD::ThrEqual ( ngcbTHREAD_T t1,
ngcbTHREAD_T t2 )

Test the equality of the two threads t1 and t2.

◆ ThrExit()

void ngcbTHREAD::ThrExit ( )

Thread exit.

◆ ThrJoin() [1/2]

int ngcbTHREAD::ThrJoin ( char * erms = NULL)

Wait for this thread.

◆ ThrJoin() [2/2]

int ngcbTHREAD::ThrJoin ( ngcbTHREAD_T threadId,
char * erms = NULL )

Wait for a thread.

◆ ThrKill() [1/2]

int ngcbTHREAD::ThrKill ( int sig,
char * erms = NULL )

Cancel this thread.

◆ ThrKill() [2/2]

int ngcbTHREAD::ThrKill ( ngcbTHREAD_T threadId,
int sig,
char * erms = NULL )

Cancel thread by thread-id.


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