Ice 3.7 C++11 API Reference
Public Member Functions | Protected Attributes | List of all members
IceUtil::Thread Class Referenceabstract

#include <Thread.h>

Inheritance diagram for IceUtil::Thread:
Inheritance graph
[legend]
Collaboration diagram for IceUtil::Thread:
Collaboration graph
[legend]

Public Member Functions

void _done ()
 
ThreadControl getThreadControl () const
 
bool isAlive () const
 
const std::string & name () const
 
bool operator< (const Thread &) const
 
bool operator== (const Thread &) const
 
virtual void run ()=0
 
ThreadControl start (size_t, int priority)
 
ThreadControl start (size_t=0)
 
 Thread ()
 
 Thread (const std::string &)
 
virtual ~Thread ()
 
- Public Member Functions inherited from IceUtil::Shared
void __clearFlag (unsigned char flag)
 
virtual void __decRef ()
 
virtual int __getRef () const
 
bool __hasFlag (unsigned char flag)
 
virtual void __incRef ()
 
void __setFlag (unsigned char flag)
 
virtual void __setNoDelete (bool)
 
Sharedoperator= (const Shared &)
 
 Shared ()
 
 Shared (const Shared &)
 
virtual ~Shared ()
 

Protected Attributes

const std::string _name
 
bool _running
 
bool _started
 
Mutex _stateMutex
 
pthread_t _thread
 
- Protected Attributes inherited from IceUtil::Shared
unsigned char _flags
 
IceUtilInternal::Atomic _ref
 

Additional Inherited Members

- Static Public Attributes inherited from IceUtil::Shared
static const unsigned char NoDelete
 

Constructor & Destructor Documentation

◆ Thread() [1/2]

IceUtil::Thread::Thread ( )

◆ Thread() [2/2]

IceUtil::Thread::Thread ( const std::string &  )

◆ ~Thread()

virtual IceUtil::Thread::~Thread ( )
virtual

Member Function Documentation

◆ _done()

void IceUtil::Thread::_done ( )

◆ getThreadControl()

ThreadControl IceUtil::Thread::getThreadControl ( ) const

◆ isAlive()

bool IceUtil::Thread::isAlive ( ) const

◆ name()

const std::string& IceUtil::Thread::name ( ) const

◆ operator<()

bool IceUtil::Thread::operator< ( const Thread ) const

◆ operator==()

bool IceUtil::Thread::operator== ( const Thread ) const

◆ run()

virtual void IceUtil::Thread::run ( )
pure virtual

Implemented in IceUtil::Timer.

◆ start() [1/2]

ThreadControl IceUtil::Thread::start ( size_t  ,
int  priority 
)

◆ start() [2/2]

ThreadControl IceUtil::Thread::start ( size_t  = 0)

Member Data Documentation

◆ _name

const std::string IceUtil::Thread::_name
protected

◆ _running

bool IceUtil::Thread::_running
protected

◆ _started

bool IceUtil::Thread::_started
protected

◆ _stateMutex

Mutex IceUtil::Thread::_stateMutex
protected

◆ _thread

pthread_t IceUtil::Thread::_thread
protected

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