Synchronizer_Common Class Reference

#include <synchronizer.h>

Inheritance diagram for Synchronizer_Common:

Semaphore

List of all members.

Protected Member Functions

void wakeup ()
void wakeupAll ()
bool tsl (volatile bool &lock)
int inc (volatile int &number)
int dec (volatile int &number)
void sleep ()

Private Types

typedef CircularVector< Thread * > ThreadVector

Private Member Functions

void removeWaintingThreadAndResume ()

Private Attributes

ThreadVector _waitingThreads


Detailed Description

Author:
Group 06

Definition at line 23 of file synchronizer.h.


Member Function Documentation

int Synchronizer_Common::dec ( volatile int &  number  )  [inline, protected]

Atomic decrement operation operations

Definition at line 59 of file synchronizer.h.

int Synchronizer_Common::inc ( volatile int &  number  )  [inline, protected]

Atomic increment operation operations

Definition at line 54 of file synchronizer.h.

void Synchronizer_Common::removeWaintingThreadAndResume (  )  [inline, private]

Removes a Thread from the waiting CircularVector and then resumes it

Definition at line 79 of file synchronizer.h.

void Synchronizer_Common::sleep (  )  [inline, protected]

Thread operations

Todo:
Put on Scheduler

Definition at line 65 of file synchronizer.h.

bool Synchronizer_Common::tsl ( volatile bool &  lock  )  [inline, protected]

Atomic lock operation operations

Definition at line 49 of file synchronizer.h.

void Synchronizer_Common::wakeup (  )  [inline, protected]

Wake up single waiting Thread

Definition at line 30 of file synchronizer.h.

void Synchronizer_Common::wakeupAll (  )  [inline, protected]

Wakes up all waiting Thread

Definition at line 39 of file synchronizer.h.


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

Generated on Mon May 4 09:42:22 2009 for EPOS-- by  doxygen 1.5.8