sk::rt::thread::AbstractLock Class Reference

#include <AbstractLock.h>

Inheritance diagram for sk::rt::thread::AbstractLock:

sk::rt::Lock sk::util::Object sk::rt::Mutex sk::rt::ReentrantLock

List of all members.

Public Member Functions

virtual ~AbstractLock ()
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.
virtual bool isLocked () const =0
template<typename R , typename T , typename TMF >
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 &param)
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

 AbstractLock (abstract::Mutex *mutex, bool ownership)
bool tryLockCheck () const
virtual void collectInspectInfo (std::ostream &stream) const


Constructor & Destructor Documentation

virtual sk::rt::thread::AbstractLock::~AbstractLock (  )  [virtual]

sk::rt::thread::AbstractLock::AbstractLock ( abstract::Mutex mutex,
bool  ownership 
) [protected]


Member Function Documentation

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.

virtual void sk::rt::thread::AbstractLock::collectInspectInfo ( std::ostream &  stream  )  const [protected, virtual]

Reimplemented in sk::rt::ReentrantLock.

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

Returns the object's class.

Reimplemented from sk::util::Object.

Reimplemented in sk::rt::Mutex, and sk::rt::ReentrantLock.

virtual uint64_t sk::util::Object::getId (  )  const [virtual, inherited]

Returns a unique object id.

Reimplemented in sk::rt::Thread.

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

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

Reimplemented from sk::util::Object.

virtual bool sk::rt::Lock::isLocked (  )  const [pure virtual, inherited]

Implemented in sk::rt::Mutex, and sk::rt::ReentrantLock.

void sk::rt::thread::AbstractLock::lock (  )  [virtual]

Implements sk::rt::Lock.

Reimplemented in sk::rt::ReentrantLock.

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.

template<>
void sk::rt::Lock::synchronize ( function_t function  )  [inline, inherited]

template<typename T >
void sk::rt::Lock::synchronize ( const T &  target  )  [inline, inherited]

template<typename T >
void sk::rt::Lock::synchronize ( T &  target  )  [inline, inherited]

template<typename T , typename TMF , typename P >
void sk::rt::Lock::synchronize ( T &  target,
TMF  method,
P &  param 
) [inline, inherited]

template<typename T , typename TMF >
void sk::rt::Lock::synchronize ( T &  target,
TMF  method 
) [inline, inherited]

template<typename T , typename TMF >
void sk::rt::Lock::synchronize ( T &  target,
TMF  method 
) [inline, inherited]

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::thread::AbstractLock::tryLock (  )  [virtual]

Implements sk::rt::Lock.

Reimplemented in sk::rt::ReentrantLock.

bool sk::rt::thread::AbstractLock::tryLockCheck (  )  const [protected]

void sk::rt::thread::AbstractLock::unlock (  )  [virtual]

Implements sk::rt::Lock.

Reimplemented in sk::rt::ReentrantLock.


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