| 1 |
// Copyright (c) Microsoft. All rights reserved. |
| 2 |
// Licensed under the MIT license. See LICENSE file in the project root for full license information. |
| 3 |
|
| 4 |
#ifndef TESTMUTEX_H |
| 5 |
#define TESTMUTEX_H |
| 6 |
|
| 7 |
#ifdef _MSC_VER |
| 8 |
#ifdef __cplusplus |
| 9 |
extern "C" { |
| 10 |
#endif |
| 11 |
|
| 12 |
typedef void* TEST_MUTEX_HANDLE; |
| 13 |
|
| 14 |
extern TEST_MUTEX_HANDLE testmutex_create(void); |
| 15 |
extern int testmutex_acquire(TEST_MUTEX_HANDLE mutex); |
| 16 |
extern int testmutex_release(TEST_MUTEX_HANDLE mutex); |
| 17 |
extern void testmutex_destroy(TEST_MUTEX_HANDLE mutex); |
| 18 |
|
| 19 |
#ifdef __cplusplus |
| 20 |
} |
| 21 |
#endif |
| 22 |
|
| 23 |
#endif /* _MSC_VER */ |
| 24 |
|
| 25 |
#endif /*MICROMOCKTESTMUTEX_H*/ |
| 26 |
|