MHVLib  20111011
An efficiency oriented runtime library for AVR microcontrollers
MHV_Lock Class Reference

#include <MHV_Lock.h>

List of all members.

Public Member Functions

 MHV_Lock ()
bool obtain ()
void release ()
bool check ()

Detailed Description

Definition at line 10 of file MHV_Lock.h.


Constructor & Destructor Documentation

MHV_Lock::MHV_Lock ( )

Create a new lock

Definition at line 13 of file MHV_Lock.cpp.


Member Function Documentation

bool MHV_Lock::check ( )

Check if the lock is currently held

Returns:
true if the lock is held

Definition at line 44 of file MHV_Lock.cpp.

bool MHV_Lock::obtain ( )

Obtain the lock

Returns:
true if the lock was successfully obtained, false otherwise

Definition at line 21 of file MHV_Lock.cpp.

void MHV_Lock::release ( )

Release the lock

Definition at line 34 of file MHV_Lock.cpp.


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