Main Page   Modules   Class Hierarchy   Data Structures   File List   Data Fields   Globals  

oscl_mutex.h File Reference

This file provides implementation of mutex. More...

#include "osclconfig_proc.h"
#include "oscl_types.h"
#include "oscl_base.h"
#include "oscl_thread.h"
#include "oscl_lock_base.h"

Go to the source code of this file.

Data Structures

class  OsclMutex
class  OsclThreadLock

Typedefs

typedef OsclMutex OsclNoYieldMutex


Detailed Description

This file provides implementation of mutex.


Typedef Documentation

typedef OsclMutex OsclNoYieldMutex
 

Class OsclNoYieldMutex can be used in use cases where there will be no CPU-yielding operation done while the Mutex is locked.

CPU-yielding operations include OsclMutex::Lock, OsclSemphore::Wait, OsclThread::Sleep, and OsclBrewThreadUtil::BThreadYield.

The behavior of OsclNoYieldMutex depends on whether the threading model is pre-emptive or not. When threading is pre-emptive, it is identical to OsclMutex. When threading is non-pre-emptive, it is a NO-OP.

An example of this type of use case is for simple data protection.


OSCL API
Posting Version: OPENCORE_20090310