add mutex

git-svn-id: http://svn2.nishi.boats/svn/milsko/trunk@691 b9cfdab3-6d41-4d17-bbe4-086880011989
This commit is contained in:
NishiOwO
2025-11-13 10:50:32 +00:00
parent 06569b3dbf
commit 4d5f5a2f9d
7 changed files with 107 additions and 15 deletions

View 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

View File

@@ -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>