Tekkotsu Homepage
Demos
Overview
Downloads
Dev. Resources
Reference
Credits

Resource Class Reference

Provides a generic interface for resources which need to keep track of when they are in use, such as mutex locks. More...

#include <Resource.h>

Inheritance diagram for Resource:

Detailed Description

Provides a generic interface for resources which need to keep track of when they are in use, such as mutex locks.

Definition at line 6 of file Resource.h.

List of all members.

Classes

class  Data
 base class for holding data required for requesting to use/release the resource More...

Public Member Functions

virtual ~Resource ()
 destructor (does nothing -- up to subclass if they need to release resource)
virtual void useResource (Data &d)=0
 marks the resource as in use
virtual void releaseResource (Data &d)=0
 releases the resource

Static Public Attributes

static Data emptyData
 to use as the data reference when none is needed/specified

Constructor & Destructor Documentation

virtual Resource::~Resource (  )  [virtual]

destructor (does nothing -- up to subclass if they need to release resource)

Definition at line 16 of file Resource.h.


Member Function Documentation


Member Data Documentation

to use as the data reference when none is needed/specified

Definition at line 13 of file Resource.h.

Referenced by Socket::getWriteBuffer(), Thread::Lock::lock(), Thread::Lock::unlock(), and Socket::write().


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

Tekkotsu v5.1CVS
Generated Mon May 9 04:59:15 2016 by Doxygen 1.6.3