mirror of
https://github.com/1dot13/source.git
synced 2026-07-22 13:40:22 +02:00
git-svn-id: https://ja2svn.mooo.com/source/ja2/trunk/GameSource/ja2_v1.13/Build@1871 3b4a5df2-a311-0410-b5c6-a8a6f20db521
20 lines
682 B
C
20 lines
682 B
C
#ifndef __MUTEX_
|
|
#define __MUTEX_
|
|
|
|
#include <process.h>
|
|
#include "Types.h"
|
|
#include "Local.h"
|
|
|
|
extern BOOLEAN InitializeMutexManager(void);
|
|
extern void ShutdownMutexManager(void);
|
|
extern BOOLEAN InitializeMutex(UINT32 uiMutexIndex, UINT8 *ubMutexName);
|
|
extern BOOLEAN DeleteMutex(UINT32 uiMutexIndex);
|
|
extern BOOLEAN EnterMutex(UINT32 uiMutexIndex, INT32 nLine, STR8 szFilename);
|
|
extern BOOLEAN EnterMutexWithTimeout(UINT32 uiMutexIndex, UINT32 uiTimeout, INT32 nLine, STR8 szFilename);
|
|
extern BOOLEAN LeaveMutex(UINT32 uiMutexIndex, INT32 nLine, STR8 szFilename);
|
|
|
|
//
|
|
// Use defines to allocate slots in the mutex manager. Put these defines in LOCAL.H
|
|
//
|
|
|
|
#endif |