This repository has been archived by the owner on Jul 12, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 97
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
4 changed files
with
38 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
// Copyright (c) Microsoft Corporation. | ||
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception | ||
|
||
#pragma once | ||
|
||
#include <yvals.h> | ||
|
||
_STD_BEGIN | ||
|
||
class _CRTIMP2_PURE_IMPORT _Init_locks { // initialize mutexes | ||
public: | ||
#ifdef _M_CEE_PURE | ||
__CLR_OR_THIS_CALL _Init_locks() noexcept { | ||
_Init_locks_ctor(this); | ||
} | ||
|
||
__CLR_OR_THIS_CALL ~_Init_locks() noexcept { | ||
_Init_locks_dtor(this); | ||
} | ||
|
||
#else // _M_CEE_PURE | ||
__thiscall _Init_locks() noexcept; | ||
__thiscall ~_Init_locks() noexcept; | ||
#endif // _M_CEE_PURE | ||
|
||
private: | ||
static void __cdecl _Init_locks_ctor(_Init_locks*) noexcept; | ||
static void __cdecl _Init_locks_dtor(_Init_locks*) noexcept; | ||
}; | ||
|
||
_STD_END |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters