mbo::CCriticalSectionFake Class Reference

Critical Section Fake. More...

#include <MboSynch.h>

Inheritance diagram for mbo::CCriticalSectionFake:

Inheritance graph
{mbo::ICriticalSection\n||+ ~ICriticalSection()\l+ Enter()\l+ Leave()\l+ GetLock()\l+ GetLevel()\l}
[legend]
Collaboration diagram for mbo::CCriticalSectionFake:

Collaboration graph
{mbo::ICriticalSection\n||+ ~ICriticalSection()\l+ Enter()\l+ Leave()\l+ GetLock()\l+ GetLevel()\l}
[legend]

List of all members.

Public Member Functions

virtual void Enter () const
virtual void Leave () const
virtual CLock GetLock () const
virtual unsigned long GetLevel () const


Detailed Description

Critical Section Fake.

Definition at line 930 of file MboSynch.h.


Member Function Documentation

virtual void mbo::CCriticalSectionFake::Enter (  )  const [inline, virtual]

Enter the lock (NOP)

Implements mbo::ICriticalSection.

Definition at line 936 of file MboSynch.h.

00937     {
00938         // NOP
00939     }

virtual void mbo::CCriticalSectionFake::Leave (  )  const [inline, virtual]

Leave the lock (NOP)

Implements mbo::ICriticalSection.

Definition at line 943 of file MboSynch.h.

00944     {
00945         // NOP
00946     }

virtual CLock mbo::CCriticalSectionFake::GetLock (  )  const [inline, virtual]

Get Lock for Critical Section

Returns:
CLockFake

Implements mbo::ICriticalSection.

Definition at line 951 of file MboSynch.h.

00952     {
00953         return CLockFake();
00954     }

virtual unsigned long mbo::CCriticalSectionFake::GetLevel (  )  const [inline, virtual]

Returns:
Number of times CriticalSection is entered
Note:
This is only valie when the CriticalSection/Mutex is owned by the current thread.

Always returns 1 so that CUnlock can work.

Implements mbo::ICriticalSection.

Definition at line 963 of file MboSynch.h.

00964     {
00965         return 1;
00966     }


The documentation for this class was generated from the following file:
  Hosted on code.google.com  
© Marcus Börger
Generated on Fri Jan 18 21:21:13 2008 for MBO-lib by doxygen 1.5.4