UA Server SDK C++ Bundle  1.3.2.200
 All Data Structures Namespaces Functions Variables Typedefs Enumerations Enumerator Groups Pages
UaJobThread Class Reference

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.
- Public Member Functions inherited from UaThread
 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 Public Member Functions inherited from UaThread
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

UaJobThread.

UaJobThread Class. Derived from UaThread.

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.
OpcUa_StatusCode UaJobThread::startJob ( UaThreadPoolJob pJob)

Start job execution in job thread.

Parameters
jobPointer 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]pJobPointer 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: