mirror of
https://gitea.nishi.boats/pyrite-dev/milsko
synced 2026-01-05 00:50:53 +00:00
git-svn-id: http://svn2.nishi.boats/svn/milsko/trunk@691 b9cfdab3-6d41-4d17-bbe4-086880011989
44 lines
615 B
C
44 lines
615 B
C
/* $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
|