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

#include <ngcbTHREAD.hpp>

Inheritance diagram for ngcbPTIMER:
ngcbTIMER ngcbTHREAD

Public Member Functions

 ngcbPTIMER (int ms)
 Constructor with timer value (milliseconds)
 
 ngcbPTIMER (int ms, int id)
 Constructor with timer value and id.
 
 ngcbPTIMER (int after, int ms, int id)
 Constructor with start delay (milliseconds), timer value and id.
 
virtual ~ngcbPTIMER ()
 Destructor.
 
- Public Member Functions inherited from ngcbTIMER
ngcbTIMERoperator= (const ngcbTIMER &other)
 Operator =.
 
 ngcbTIMER (const ngcbTIMER &other)
 Copy constructor.
 
 ngcbTIMER (int ms)
 Constructor with timer value (milliseconds)
 
 ngcbTIMER (int ms, int id)
 Constructor with timer value and id.
 
 ngcbTIMER (int periodic, int ms, int id)
 Constructor with timer type, value and id.
 
 ngcbTIMER (int after, int periodic, int ms, int id)
 Constructor with start delay (milliseconds), timer type, value and id.
 
virtual ~ngcbTIMER ()
 Destructor.
 
int Fd ()
 Return timer file descriptor for select call.
 
int RecvId ()
 Receive timer id.
 
- Public Member Functions inherited from ngcbTHREAD
 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

Periodic timer class

Constructor & Destructor Documentation

◆ ngcbPTIMER() [1/3]

ngcbPTIMER::ngcbPTIMER ( int ms)
inlineexplicit

Constructor with timer value (milliseconds)

◆ ngcbPTIMER() [2/3]

ngcbPTIMER::ngcbPTIMER ( int ms,
int id )
inline

Constructor with timer value and id.

◆ ngcbPTIMER() [3/3]

ngcbPTIMER::ngcbPTIMER ( int after,
int ms,
int id )
inline

Constructor with start delay (milliseconds), timer value and id.

◆ ~ngcbPTIMER()

virtual ngcbPTIMER::~ngcbPTIMER ( )
inlinevirtual

Destructor.


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