#include <Thread.h>

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::State & | getState () 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::Generic & | currentThread () |
| 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 () |
| 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] |
| 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] |
Implements sk::rt::thread::Generic.
| int sk::rt::Thread::exitStatus | ( | ) | const [virtual] |
Implements sk::rt::thread::Generic.
| const sk::util::Class sk::rt::Thread::getClass | ( | ) | const [virtual] |
| static thread::UncaughtExceptionHandler& sk::rt::Thread::getDefaultUncaughtExceptionHandler | ( | ) | [static] |
| uint64_t sk::rt::Thread::getId | ( | ) | const [virtual] |
| const sk::util::String sk::rt::Thread::getName | ( | ) | const [virtual] |
Implements sk::rt::thread::Generic.
| const sk::rt::thread::State& sk::rt::Thread::getState | ( | ) | const [virtual] |
Implements sk::rt::thread::Generic.
| 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] |
Implements sk::rt::thread::Generic.
| bool sk::rt::Thread::isAlive | ( | ) | const [virtual] |
Implements sk::rt::thread::Generic.
| bool sk::rt::Thread::isDetached | ( | ) | const [virtual] |
Implements sk::rt::thread::Generic.
| bool sk::rt::Thread::isException | ( | ) | const [virtual] |
Implements sk::rt::thread::Generic.
| bool sk::rt::Thread::isExited | ( | ) | const [virtual] |
Implements sk::rt::thread::Generic.
| bool sk::rt::Thread::isInterrupted | ( | ) | const [virtual] |
Implements sk::rt::thread::Generic.
| bool sk::rt::Thread::isMain | ( | ) | const [virtual] |
Implements sk::rt::thread::Generic.
| bool sk::rt::Thread::isRegular | ( | ) | const [virtual] |
Implements sk::rt::thread::Generic.
| bool sk::rt::Thread::isService | ( | ) | const [virtual] |
Implements sk::rt::thread::Generic.
| void sk::rt::Thread::join | ( | ) | [virtual] |
Implements sk::rt::thread::Generic.
| 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] |
| 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] |
Implements sk::rt::thread::Generic.
| void sk::rt::Thread::stop | ( | ) | [virtual] |
Implements sk::rt::thread::Generic.
| 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] |
1.5.8