sk::rt::Thread Class Reference

#include <Thread.h>

Inheritance diagram for sk::rt::Thread:

sk::rt::thread::Generic sk::rt::Runnable sk::util::Object sk::util::Object

List of all members.

Public Member Functions

 Thread ()
 Thread (const sk::util::String &name)
 Thread (sk::rt::Runnable &target)
 Thread (sk::rt::Runnable &target, const sk::util::String &name)
 Thread (sk::rt::Runnable *target)
 Thread (sk::rt::Runnable *target, const sk::util::String &name)
virtual ~Thread ()
void start ()
void stop ()
void join ()
void detach ()
void interrupt ()
const sk::util::String getName () const
const sk::rt::thread::StategetState () const
bool isAlive () const
bool isInterrupted () const
bool isException () const
bool isExited () const
int exitStatus () const
bool isMain () const
bool isService () const
bool isRegular () const
bool isDetached () const
const sk::util::Class getClass () const
 Returns the object's class.
const sk::util::String inspect () const
 Returns a string containing human-readable representation of the object.
uint64_t getId () const
 Returns a unique object id.
virtual Object & self ()
 Returns a reference to itself.
virtual const Object & self () const
Object * clone () const
 Instantiates another object of the same class as a copy of itself.
virtual const String toString () const
 Returns a string representation of the object. By default, it returns the object's class and the objects's id.

Static Public Member Functions

static thread::GenericcurrentThread ()
static int activeCount ()
static void yield ()
static void pass ()
static void sleep (uint64_t milliseconds)
static void setDefaultUncaughtExceptionHandler (thread::UncaughtExceptionHandler &handler)
static
thread::UncaughtExceptionHandler
getDefaultUncaughtExceptionHandler ()
static void reset ()

Protected Member Functions

virtual void run ()


Constructor & Destructor Documentation

sk::rt::Thread::Thread (  ) 

sk::rt::Thread::Thread ( const sk::util::String name  ) 

sk::rt::Thread::Thread ( sk::rt::Runnable target  ) 

sk::rt::Thread::Thread ( sk::rt::Runnable target,
const sk::util::String name 
)

sk::rt::Thread::Thread ( sk::rt::Runnable target  ) 

sk::rt::Thread::Thread ( sk::rt::Runnable target,
const sk::util::String name 
)

virtual sk::rt::Thread::~Thread (  )  [virtual]


Member Function Documentation

static int sk::rt::Thread::activeCount (  )  [static]

Object* sk::util::Object::clone (  )  const [inherited]

Instantiates another object of the same class as a copy of itself.

Reimplemented in sk::rt::logger::Destination, and sk::util::String.

static thread::Generic& sk::rt::Thread::currentThread (  )  [static]

void sk::rt::Thread::detach (  )  [virtual]

int sk::rt::Thread::exitStatus (  )  const [virtual]

const sk::util::Class sk::rt::Thread::getClass (  )  const [virtual]

Returns the object's class.

Reimplemented from sk::util::Object.

static thread::UncaughtExceptionHandler& sk::rt::Thread::getDefaultUncaughtExceptionHandler (  )  [static]

uint64_t sk::rt::Thread::getId (  )  const [virtual]

Returns a unique object id.

Reimplemented from sk::util::Object.

const sk::util::String sk::rt::Thread::getName (  )  const [virtual]

const sk::rt::thread::State& sk::rt::Thread::getState (  )  const [virtual]

const sk::util::String sk::rt::Thread::inspect (  )  const [virtual]

Returns a string containing human-readable representation of the object.

Reimplemented from sk::util::Object.

void sk::rt::Thread::interrupt (  )  [virtual]

bool sk::rt::Thread::isAlive (  )  const [virtual]

bool sk::rt::Thread::isDetached (  )  const [virtual]

bool sk::rt::Thread::isException (  )  const [virtual]

bool sk::rt::Thread::isExited (  )  const [virtual]

bool sk::rt::Thread::isInterrupted (  )  const [virtual]

bool sk::rt::Thread::isMain (  )  const [virtual]

bool sk::rt::Thread::isRegular (  )  const [virtual]

bool sk::rt::Thread::isService (  )  const [virtual]

void sk::rt::Thread::join (  )  [virtual]

static void sk::rt::Thread::pass (  )  [static]

static void sk::rt::Thread::reset (  )  [static]

virtual void sk::rt::Thread::run (  )  [protected, virtual]

Implements sk::rt::Runnable.

virtual const Object& sk::util::Object::self (  )  const [virtual, inherited]

Reimplemented in sk::util::String.

virtual Object& sk::util::Object::self (  )  [virtual, inherited]

Returns a reference to itself.

Reimplemented in sk::util::String.

static void sk::rt::Thread::setDefaultUncaughtExceptionHandler ( thread::UncaughtExceptionHandler handler  )  [static]

static void sk::rt::Thread::sleep ( uint64_t  milliseconds  )  [static]

void sk::rt::Thread::start (  )  [virtual]

void sk::rt::Thread::stop (  )  [virtual]

virtual const String sk::util::Object::toString (  )  const [virtual, inherited]

Returns a string representation of the object. By default, it returns the object's class and the objects's id.

Reimplemented in sk::rt::logger::Level, sk::rt::thread::State, sk::util::Boolean, sk::util::Class, sk::util::Container, sk::util::Pathname, and sk::util::String.

static void sk::rt::Thread::yield (  )  [static]


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

Generated on Tue Mar 3 12:36:09 2009 for stemkit-cpp by  doxygen 1.5.8