From 0ea5fc66924303d1bf73ba283a383e2aadee02f2 Mon Sep 17 00:00:00 2001 From: neodarz Date: Sat, 11 Aug 2018 20:21:34 +0200 Subject: Initial commit --- docs/doxygen/nel/a03629.html | 202 +++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 202 insertions(+) create mode 100644 docs/doxygen/nel/a03629.html (limited to 'docs/doxygen/nel/a03629.html') diff --git a/docs/doxygen/nel/a03629.html b/docs/doxygen/nel/a03629.html new file mode 100644 index 00000000..4d8b4810 --- /dev/null +++ b/docs/doxygen/nel/a03629.html @@ -0,0 +1,202 @@ + + +NeL: NLMISC::CUnfairMutex class Reference + + + +
+

NLMISC::CUnfairMutex Class Reference

#include <mutex.h> +

+


Detailed Description

+Classic mutex implementation (not necessarly fair) Don't assume the mutex are recursive (ie don't call enter() several times on the same mutex from the same thread without having called leave()) ; and don't assume either the threads are woken-up in the same order as they were put to sleep !

+Windows: uses Mutex, cannot be shared among processes. Linux: uses PThread POSIX Mutex, cannot be shared among processes.

+

CUnfairMutex m; + m.enter (); + // do critical stuffs + m.leave (); + * +
Author:
Vianney Lecroart, Olivier Cado

+Nevrax France

+
Date:
2000
+ +

+ +

+Definition at line 79 of file mutex.h. + + + + + + + + + + + + + + + + +

Public Member Functions

 CUnfairMutex (const std::string &name)
 CUnfairMutex ()
 Constructor.

void enter ()
 Enter the critical section.

void leave ()
 Leave the critical section.

 ~CUnfairMutex ()
 Destructor.

+


Constructor & Destructor Documentation

+

+ + + + +
+ + + + + + + + + +
NLMISC::CUnfairMutex::CUnfairMutex  ) 
+
+ + + + + +
+   + + +

+Constructor. +

+

+

+ + + + +
+ + + + + + + + + + +
NLMISC::CUnfairMutex::CUnfairMutex const std::string &  name  ) 
+
+ + + + + +
+   + + +

+

+

+ + + + +
+ + + + + + + + + +
NLMISC::CUnfairMutex::~CUnfairMutex  ) 
+
+ + + + + +
+   + + +

+Destructor. +

+

+


Member Function Documentation

+

+ + + + +
+ + + + + + + + + +
void NLMISC::CUnfairMutex::enter  ) 
+
+ + + + + +
+   + + +

+Enter the critical section. +

+

+

+ + + + +
+ + + + + + + + + +
void NLMISC::CUnfairMutex::leave  ) 
+
+ + + + + +
+   + + +

+Leave the critical section. +

+

+


The documentation for this class was generated from the following file: +
Generated on Tue Mar 16 13:39:17 2004 for NeL by + +doxygen +1.3.6
+ + -- cgit v1.2.1