#include <ReentrantLock.h>

Public Member Functions | |
| ReentrantLock () | |
| virtual | ~ReentrantLock () |
| bool | isLocked () const |
| int | getCounter () const |
| void | lock () |
| bool | tryLock () |
| void | unlock () |
| 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. | |
| template<typename R , typename T , typename TMF > | |
| R | synchronize (T &target, TMF method) |
| template<typename T , typename TMF > | |
| void | synchronize (T &target, TMF method) |
| template<typename T , typename TMF , typename P > | |
| void | synchronize (T &target, TMF method, P ¶m) |
| template<typename T > | |
| void | synchronize (T &target) |
| template<typename T > | |
| void | synchronize (const T &target) |
| template<> | |
| void | synchronize (function_t &function) |
| 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 uint64_t | getId () const |
| Returns a unique object id. | |
| 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. | |
Protected Member Functions | |
| void | collectInspectInfo (std::ostream &stream) const |
| bool | tryLockCheck () const |
| sk::rt::ReentrantLock::ReentrantLock | ( | ) |
| virtual sk::rt::ReentrantLock::~ReentrantLock | ( | ) | [virtual] |
| 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.
| void sk::rt::ReentrantLock::collectInspectInfo | ( | std::ostream & | stream | ) | const [protected, virtual] |
Reimplemented from sk::rt::thread::AbstractLock.
| const sk::util::Class sk::rt::ReentrantLock::getClass | ( | ) | const [virtual] |
| int sk::rt::ReentrantLock::getCounter | ( | ) | const |
| virtual uint64_t sk::util::Object::getId | ( | ) | const [virtual, inherited] |
| const sk::util::String sk::rt::thread::AbstractLock::inspect | ( | ) | const [virtual, inherited] |
Returns a string containing human-readable representation of the object.
Reimplemented from sk::util::Object.
| bool sk::rt::ReentrantLock::isLocked | ( | ) | const [virtual] |
Implements sk::rt::Lock.
| void sk::rt::ReentrantLock::lock | ( | ) | [virtual] |
Reimplemented from sk::rt::thread::AbstractLock.
| virtual const Object& sk::util::Object::self | ( | ) | const [virtual, inherited] |
Reimplemented in sk::util::String.
| virtual Object& sk::util::Object::self | ( | ) | [virtual, inherited] |
| void sk::rt::Lock::synchronize | ( | function_t & | function | ) | [inline, inherited] |
| void sk::rt::Lock::synchronize | ( | const T & | target | ) | [inline, inherited] |
| void sk::rt::Lock::synchronize | ( | T & | target | ) | [inline, inherited] |
| void sk::rt::Lock::synchronize | ( | T & | target, | |
| TMF | method, | |||
| P & | param | |||
| ) | [inline, inherited] |
| void sk::rt::Lock::synchronize | ( | T & | target, | |
| TMF | method | |||
| ) | [inline, inherited] |
| void sk::rt::Lock::synchronize | ( | T & | target, | |
| TMF | method | |||
| ) | [inline, inherited] |
Referenced by sk::rt::SynchronizedCollection< T >::get(), and sk::rt::Lock::synchronize().
| 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.
| bool sk::rt::ReentrantLock::tryLock | ( | ) | [virtual] |
Reimplemented from sk::rt::thread::AbstractLock.
| bool sk::rt::thread::AbstractLock::tryLockCheck | ( | ) | const [protected, inherited] |
| void sk::rt::ReentrantLock::unlock | ( | ) | [virtual] |
Reimplemented from sk::rt::thread::AbstractLock.
1.5.8