AGENT++  4.0.3
Public Member Functions | Protected Attributes | List of all members
ThreadList Class Reference

#include <threads.h>

Inheritance diagram for ThreadList:
Synchronized

Public Member Functions

 ThreadList ()
 
 ~ThreadList ()
 
void add (Thread *t)
 
void remove (Thread *t)
 
int size () const
 
Threadlast ()
 
- Public Member Functions inherited from Synchronized
 Synchronized ()
 
 ~Synchronized ()
 
void wait ()
 Causes current thread to wait until another thread invokes the notify() method or the notifyAll() method for this object.
 
bool wait (unsigned long timeout)
 Causes current thread to wait until either another thread invokes the notify() method or the notifyAll() method for this object, or a specified amount of time has elapsed.
 
void notify ()
 Wakes up a single thread that is waiting on this object's monitor.
 
void notify_all ()
 Wakes up all threads that are waiting on this object's monitor.
 
bool lock ()
 Enter a critical section.
 
TryLockResult trylock ()
 Try to enter a critical section.
 
bool unlock ()
 Leave a critical section.
 

Protected Attributes

Array< Threadlist
 

Additional Inherited Members

- Public Types inherited from Synchronized
enum  TryLockResult { LOCKED = 1, BUSY = 0, OWNED = -1 }
 

Constructor & Destructor Documentation

ThreadList::ThreadList ( )
inline
ThreadList::~ThreadList ( )
inline

Member Function Documentation

void ThreadList::add ( Thread t)
inline
Thread* ThreadList::last ( )
inline
void ThreadList::remove ( Thread t)
inline
int ThreadList::size ( ) const
inline

Member Data Documentation

Array<Thread> ThreadList::list
protected

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