1
0
Fork 0
mirror of https://github.com/beefytech/Beef.git synced 2025-06-10 12:32:20 +02:00

Fixed static init/deinit priority for Thread.Current

This commit is contained in:
Brian Fiete 2021-06-24 09:24:41 -07:00
parent 2101774b8a
commit bea4fe007a
2 changed files with 3 additions and 2 deletions

View file

@ -5,7 +5,7 @@ using System.Threading;
namespace System
{
[StaticInitPriority(100)]
[StaticInitPriority(101)]
static class Runtime
{
const int32 cVersion = 8;

View file

@ -8,6 +8,7 @@ namespace System.Threading
public delegate void ThreadStart();
public delegate void ParameterizedThreadStart(Object obj);
[StaticInitPriority(100)]
public sealed class Thread
{
private int mInternalThread;
@ -21,7 +22,7 @@ namespace System.Threading
bool mAutoDelete;
public static Thread sMainThread = new Thread() ~ delete _;
[StaticInitPriority(101)]
[StaticInitPriority(102)]
struct RuntimeThreadInit
{
static Object Thread_Alloc()