add mutex
git-svn-id: http://svn2.nishi.boats/svn/milsko/trunk@691 b9cfdab3-6d41-4d17-bbe4-086880011989
This commit is contained in:
parent
06569b3dbf
commit
4d5f5a2f9d
7 changed files with 106 additions and 14 deletions
43
include/Mw/Abstract/Mutex.h
Normal file
43
include/Mw/Abstract/Mutex.h
Normal file
|
|
@ -0,0 +1,43 @@
|
|||
/* $Id$ */
|
||||
/*!
|
||||
* @file Mw/Abstract/Mutex.h
|
||||
* @brief Mutex
|
||||
*/
|
||||
#ifndef __MW_ABSTRACT_MUTEX_H__
|
||||
#define __MW_ABSTRACT_MUTEX_H__
|
||||
|
||||
#include <Mw/MachDep.h>
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
/*!
|
||||
* @brief Creates a mutex
|
||||
* @return Handle
|
||||
*/
|
||||
MWDECL void* MwMutexCreate(void);
|
||||
|
||||
/*!
|
||||
* @brief Destroys a mutex
|
||||
* @param handle Handle
|
||||
*/
|
||||
MWDECL void MwMutexDestroy(void* handle);
|
||||
|
||||
/*!
|
||||
* @brief Locks a mutex
|
||||
* @param handle Handle
|
||||
*/
|
||||
MWDECL void MwMutexLock(void* handle);
|
||||
|
||||
/*!
|
||||
* @brief Unlocks a mutex
|
||||
* @param handle Handle
|
||||
*/
|
||||
MWDECL void MwMutexUnlock(void* handle);
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
|
||||
#endif
|
||||
|
|
@ -23,6 +23,7 @@
|
|||
#include <Mw/Abstract/Dynamic.h>
|
||||
#include <Mw/Abstract/Directory.h>
|
||||
#include <Mw/Abstract/Time.h>
|
||||
#include <Mw/Abstract/Mutex.h>
|
||||
|
||||
#include <Mw/Resource/Icon.h>
|
||||
#include <Mw/Resource/Cursor.h>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue