summaryrefslogtreecommitdiff
path: root/src/vm/common.h
diff options
context:
space:
mode:
authorJan Kotas <jkotas@microsoft.com>2019-05-21 21:15:32 -0700
committerGitHub <noreply@github.com>2019-05-21 21:15:32 -0700
commit709ff5ae8e4a25e4738afc8a742a65a3830d3568 (patch)
tree89ebca26c9a136c6851451a75b1ca9c088e502a1 /src/vm/common.h
parentac607c3f890523f0b06a1cab19057248ac6f189d (diff)
downloadcoreclr-709ff5ae8e4a25e4738afc8a742a65a3830d3568.tar.gz
coreclr-709ff5ae8e4a25e4738afc8a742a65a3830d3568.tar.bz2
coreclr-709ff5ae8e4a25e4738afc8a742a65a3830d3568.zip
Delete Unsafe redefinitions of Windows APIs (#24688)
Leftover from SQL hosting infrastructure
Diffstat (limited to 'src/vm/common.h')
-rw-r--r--src/vm/common.h9
1 files changed, 3 insertions, 6 deletions
diff --git a/src/vm/common.h b/src/vm/common.h
index 6fd5a37ad5..c273b52a3d 100644
--- a/src/vm/common.h
+++ b/src/vm/common.h
@@ -90,9 +90,6 @@
#include "volatile.h"
-// make all the unsafe redefinitions available
-#include "unsafe.h"
-
#include <../../debug/inc/dbgtargetcontext.h>
//-----------------------------------------------------------------------------------------------------------
@@ -384,7 +381,7 @@ inline VOID UnsafeEEEnterCriticalSection(LPCRITICAL_SECTION lpCriticalSection)
STATIC_CONTRACT_GC_NOTRIGGER;
STATIC_CONTRACT_CAN_TAKE_LOCK;
- UnsafeEnterCriticalSection(lpCriticalSection);
+ EnterCriticalSection(lpCriticalSection);
INCTHREADLOCKCOUNT();
}
@@ -393,7 +390,7 @@ inline VOID UnsafeEELeaveCriticalSection(LPCRITICAL_SECTION lpCriticalSection)
STATIC_CONTRACT_NOTHROW;
STATIC_CONTRACT_GC_NOTRIGGER;
- UnsafeLeaveCriticalSection(lpCriticalSection);
+ LeaveCriticalSection(lpCriticalSection);
DECTHREADLOCKCOUNT();
}
@@ -403,7 +400,7 @@ inline BOOL UnsafeEETryEnterCriticalSection(LPCRITICAL_SECTION lpCriticalSection
STATIC_CONTRACT_GC_NOTRIGGER;
STATIC_CONTRACT_CAN_TAKE_LOCK;
- BOOL fEnteredCriticalSection = UnsafeTryEnterCriticalSection(lpCriticalSection);
+ BOOL fEnteredCriticalSection = TryEnterCriticalSection(lpCriticalSection);
if(fEnteredCriticalSection)
{
INCTHREADLOCKCOUNT();