diff options
Diffstat (limited to 'src/pal/src/include/pal/critsect.h')
-rw-r--r-- | src/pal/src/include/pal/critsect.h | 45 |
1 files changed, 45 insertions, 0 deletions
diff --git a/src/pal/src/include/pal/critsect.h b/src/pal/src/include/pal/critsect.h new file mode 100644 index 0000000000..50dea95bc5 --- /dev/null +++ b/src/pal/src/include/pal/critsect.h @@ -0,0 +1,45 @@ +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. +// See the LICENSE file in the project root for more information. + +/*++ + + + +Module Name: + + include/pal/critsect.h + +Abstract: + + Header file for the critical sections functions. + + + +--*/ + +#ifndef _PAL_CRITSECT_H_ +#define _PAL_CRITSECT_H_ + +#ifdef __cplusplus +extern "C" +{ +#endif // __cplusplus + +VOID InternalInitializeCriticalSection(CRITICAL_SECTION *pcs); +VOID InternalDeleteCriticalSection(CRITICAL_SECTION *pcs); + +/* The following PALCEnterCriticalSection and PALCLeaveCriticalSection + functions are intended to provide CorUnix's InternalEnterCriticalSection + and InternalLeaveCriticalSection functionalities to legacy C code, + which has no knowledge of CPalThread, classes and namespaces. +*/ +VOID PALCEnterCriticalSection(CRITICAL_SECTION *pcs); +VOID PALCLeaveCriticalSection(CRITICAL_SECTION *pcs); + +#ifdef __cplusplus +} +#endif // __cplusplus + +#endif /* _PAL_CRITSECT_H_ */ + |