openscenegraph
Public Types | Public Member Functions | Protected Member Functions | Protected Attributes
osgDB::DatabasePager::DatabaseThread Class Reference
Inheritance diagram for osgDB::DatabasePager::DatabaseThread:
osg::Referenced OpenThreads::Thread

List of all members.

Public Types

enum  Mode { HANDLE_ALL_REQUESTS, HANDLE_NON_HTTP, HANDLE_ONLY_HTTP }

Public Member Functions

 DatabaseThread (DatabasePager *pager, Mode mode, const std::string &name)
 DatabaseThread (const DatabaseThread &dt, DatabasePager *pager)
void setName (const std::string &name)
const std::string & getName () const
void setDone (bool done)
bool getDone () const
void setActive (bool active)
bool getActive () const
virtual int cancel ()
virtual void run ()

Protected Member Functions

virtual ~DatabaseThread ()

Protected Attributes

OpenThreads::Atomic _done
volatile bool _active
DatabasePager_pager
Mode _mode
std::string _name

Member Enumeration Documentation

Enumerator:
HANDLE_ALL_REQUESTS 
HANDLE_NON_HTTP 
HANDLE_ONLY_HTTP 

Constructor & Destructor Documentation

osgDB::DatabasePager::DatabaseThread::DatabaseThread ( DatabasePager pager,
Mode  mode,
const std::string &  name 
)

Member Function Documentation

Cancel the thread. Equivalent to SIGKILL.

Returns:
0 if normal, -1 if errno set, errno code otherwise.

Reimplemented from OpenThreads::Thread.

const std::string& osgDB::DatabasePager::DatabaseThread::getName ( ) const [inline]
virtual void osgDB::DatabasePager::DatabaseThread::run ( ) [virtual]

Thread's run method. Must be implemented by derived classes. This is where the action happens.

Implements OpenThreads::Thread.

void osgDB::DatabasePager::DatabaseThread::setActive ( bool  active) [inline]
void osgDB::DatabasePager::DatabaseThread::setDone ( bool  done) [inline]
void osgDB::DatabasePager::DatabaseThread::setName ( const std::string &  name) [inline]

Member Data Documentation


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