Public Types | Public Member Functions | Protected Member Functions | Private Types | Static Private Member Functions | Private Attributes
mt::thread Class Reference

#include <thread.h>

Inheritance diagram for mt::thread:
Inheritance graph
[legend]

List of all members.

Public Types

typedef void base_type
typedef thread this_type

Public Member Functions

bool is_running (void) const
bool is_started (void) const
virtual bool kill (void)
virtual bool start (void)
 thread (void)
virtual bool wait (void)
virtual ~thread (void)

Protected Member Functions

virtual void run (void)

Private Types

enum  thread_flags { thread_none = ( 0), thread_started = (1 << 0), thread_running = (1 << 1) }

Static Private Member Functions

static void * thread_func (void *param)

Private Attributes

volatile unsigned int flags
pthread_t tid

Detailed Description

Definition at line 14 of file thread.h.


Member Typedef Documentation

typedef void mt::thread::base_type

Definition at line 21 of file thread.h.

Definition at line 20 of file thread.h.


Member Enumeration Documentation

enum mt::thread::thread_flags [private]
Enumerator:
thread_none 
thread_started 
thread_running 

Definition at line 87 of file thread.h.


Constructor & Destructor Documentation

mt::thread::thread ( void  ) [inline]

Definition at line 23 of file thread.h.

virtual mt::thread::~thread ( void  ) [inline, virtual]

Definition at line 28 of file thread.h.


Member Function Documentation

bool mt::thread::is_running ( void  ) const [inline]

Definition at line 73 of file thread.h.

bool mt::thread::is_started ( void  ) const [inline]

Definition at line 68 of file thread.h.

virtual bool mt::thread::kill ( void  ) [inline, virtual]

Definition at line 60 of file thread.h.

virtual void mt::thread::run ( void  ) [inline, protected, virtual]

Reimplemented in vcg::Cache< Token >.

Definition at line 80 of file thread.h.

virtual bool mt::thread::start ( void  ) [inline, virtual]

Definition at line 33 of file thread.h.

static void* mt::thread::thread_func ( void *  param) [inline, static, private]

Definition at line 97 of file thread.h.

virtual bool mt::thread::wait ( void  ) [inline, virtual]

Definition at line 52 of file thread.h.


Member Data Documentation

volatile unsigned int mt::thread::flags [private]

Definition at line 94 of file thread.h.

pthread_t mt::thread::tid [private]

Definition at line 95 of file thread.h.


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


shape_reconstruction
Author(s): Roberto Martín-Martín
autogenerated on Sat Jun 8 2019 18:41:08