NOVA User-Level Environment  Version testbox/changed-memory-timing-317-g320d8b5
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
KernelSemaphore Class Reference

A kernel semaphore optimized for consumer/producer. More...

#include <semaphore.h>

Public Member Functions

 KernelSemaphore (unsigned cap_sm=0, bool create=false)
void down ()
void downmulti ()
unsigned up (bool panic=true)
unsigned sm ()

Private Attributes

unsigned _sm

Detailed Description

A kernel semaphore optimized for consumer/producer.

Constructor & Destructor Documentation

KernelSemaphore::KernelSemaphore ( unsigned  cap_sm = 0,
bool  create = false 
)
inlineexplicit

Member Function Documentation

void KernelSemaphore::down ( )
inline
void KernelSemaphore::downmulti ( )
inline
unsigned KernelSemaphore::sm ( )
inline
unsigned KernelSemaphore::up ( bool  panic = true)
inline

Member Data Documentation

unsigned KernelSemaphore::_sm
private

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