mirror of
https://gitea.nishi.boats/pyrite-dev/milsko
synced 2026-01-02 23:50:50 +00:00
add mutex
git-svn-id: http://svn2.nishi.boats/svn/milsko/trunk@691 b9cfdab3-6d41-4d17-bbe4-086880011989
This commit is contained in:
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>
|
||||
|
||||
Reference in New Issue
Block a user