Public Member Functions | Static Public Member Functions | Private Attributes
Common::Thread Class Reference

#include <thread.h>

List of all members.

Public Member Functions

 DEFINE_CLASS_POINTERS (Thread)
void Join ()
 Wait until started thread stop.
void Run ()
 Calls in the separate thread from ThreadProc.
 Thread (std::function< void()> f, ThreadObserver *observer=0)
 Starts f in a separate thread.
 ~Thread ()

Static Public Member Functions

static Thread::UniquePtr Create (ThreadProc f, ThreadObserver *observer=0)
static Thread::UniquePtr Create (void(*f)(), ThreadObserver *observer=0)
static void ThreadProc (Thread *thread)
 static member required for std::thread

Private Attributes

Common::ThreadProc Func
std::thread Impl
ThreadObserverObserver

Detailed Description

Definition at line 33 of file thread.h.


Constructor & Destructor Documentation

Common::Thread::Thread ( std::function< void()>  f,
ThreadObserver observer = 0 
)

Starts f in a separate thread.

Definition at line 18 of file thread.cpp.

Definition at line 25 of file thread.cpp.


Member Function Documentation

static Thread::UniquePtr Common::Thread::Create ( ThreadProc  f,
ThreadObserver observer = 0 
) [inline, static]

Definition at line 42 of file thread.h.

static Thread::UniquePtr Common::Thread::Create ( void(*)()  f,
ThreadObserver observer = 0 
) [inline, static]

Definition at line 47 of file thread.h.

Wait until started thread stop.

Definition at line 36 of file thread.cpp.

Calls in the separate thread from ThreadProc.

Definition at line 41 of file thread.cpp.

void Common::Thread::ThreadProc ( Thread thread) [static]

static member required for std::thread

Definition at line 60 of file thread.cpp.


Member Data Documentation

Definition at line 65 of file thread.h.

std::thread Common::Thread::Impl [private]

Definition at line 66 of file thread.h.

Definition at line 64 of file thread.h.


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


ros_opcua_impl_freeopcua
Author(s): Denis Štogl
autogenerated on Sat Jun 8 2019 18:24:59