UaJobThread.
More...
Inherits UaThread.
Public Member Functions |
| UaJobThread () |
| construction
|
| ~UaJobThread () |
| destruction
|
OpcUa_StatusCode | startJob (UaThreadPoolJob *job) |
| Start job execution in job thread.
|
OpcUa_Boolean | jobActive () |
| Check if a job is active.
|
OpcUa_StatusCode | stopThread () |
| Stop the thread.
|
| UaThread () |
| Constructs a thread management object without starting the thread.
|
virtual | ~UaThread () |
| Destroys the thread management object.
|
virtual void | start () |
| Starts the thread managed by this object.
|
OpcUa_Boolean | wait (OpcUa_UInt32 time=OpcUa_UInt32_Max) |
| Waits for the termination of the thread.
|
OpcUa_Boolean | running () const |
| Returns the running state of the thread.
|
OpcUa_Boolean | finished () const |
| Returns the running state of the thread.
|
Additional Inherited Members |
static OpcUa_UInt32 | currentThread () |
| Get thread ID of current thread.
|
static void | sleep (OpcUa_UInt32 secs) |
| Sleep for n seconds.
|
static void | msleep (OpcUa_UInt32 msecs) |
| Sleep for n milliseconds.
|
static void | usleep (OpcUa_UInt32 usecs) |
| Sleep for n microseconds.
|
Detailed Description
Member Function Documentation
OpcUa_Boolean UaJobThread::jobActive |
( |
| ) |
|
Check if a job is active.
- Returns
- OpcUa_True if a job is active, OpcUa_False if not.
-
true if active false if not.
Start job execution in job thread.
- Parameters
-
job | Pointer to job base class. Job data is contained in derived class. |
- Returns
- OpcUa_Good if the job was successfully started, OpcUa_BadInternalError if an error occurred in the startJob function
-
the OPC UA Status code.
- Parameters
-
[in] | pJob | Pointer to job base class. Job data is contained in derived class. |
OpcUa_StatusCode UaJobThread::stopThread |
( |
| ) |
|
Stop the thread.
- Returns
- the OPC UA Status code.
The documentation for this class was generated from the following file:
- /home/buildbot/work/uasdkcpp/src/uabase/uabasecpp/uathreadpool.cpp