blob: 06c82f8a402e5e31ae4e591a55afd3d4cff98d8f (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
|
// 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.
//
//
// ---------------------------------------------------------------------------
// CLREx.h
// ---------------------------------------------------------------------------
#ifndef _CLREX_INL_
#define _CLREX_INL_
inline CLRException::HandlerState::HandlerState(Thread * pThread)
{
STATIC_CONTRACT_NOTHROW;
STATIC_CONTRACT_GC_NOTRIGGER;
STATIC_CONTRACT_MODE_ANY;
STATIC_CONTRACT_CANNOT_TAKE_LOCK;
STATIC_CONTRACT_SO_TOLERANT;
m_pThread = pThread;
if (m_pThread == NULL)
{
m_pFrame = NULL;
m_fPreemptiveGCDisabled = FALSE;
}
else
{
m_pFrame = m_pThread->GetFrame();
m_fPreemptiveGCDisabled = m_pThread->PreemptiveGCDisabled();
}
}
inline CLRException::HandlerState::HandlerState(Thread * pThread, CLRException::HandlerState::NonNullThread dummy)
{
STATIC_CONTRACT_NOTHROW;
STATIC_CONTRACT_GC_NOTRIGGER;
STATIC_CONTRACT_MODE_ANY;
STATIC_CONTRACT_CANNOT_TAKE_LOCK;
STATIC_CONTRACT_SO_TOLERANT;
_ASSERTE(pThread != NULL);
m_pThread = pThread;
m_pFrame = m_pThread->GetFrame();
m_fPreemptiveGCDisabled = m_pThread->PreemptiveGCDisabled();
}
#endif // _CLREX_INL_
|