summaryrefslogtreecommitdiff
path: root/src/System.Private.CoreLib/src/System/Threading/StackCrawlMark.cs
blob: 7323d1dced171eb273518d45ec0aeafd012a8792 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
// 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.

namespace System.Threading
{
    /// <summary>
    /// declaring a local var of this enum type and passing it by ref into a function that needs to do a
    /// stack crawl will both prevent inlining of the callee and pass an ESP point to stack crawl to
    /// Declaring these in EH clauses is illegal; they must declared in the main method body
    /// </summary>
    internal enum StackCrawlMark
    {
        LookForMe = 0,
        LookForMyCaller = 1,
        LookForMyCallersCaller = 2,
        LookForThread = 3
    }
}