mirror of
https://github.com/beefytech/Beef.git
synced 2025-06-13 22:04:09 +02:00
Merge branch 'master' of https://github.com/beefytech/Beef
This commit is contained in:
commit
1625d511be
1 changed files with 21 additions and 11 deletions
|
@ -19,7 +19,7 @@ namespace System.Threading
|
||||||
|
|
||||||
private Object mThreadStartArg;
|
private Object mThreadStartArg;
|
||||||
|
|
||||||
bool mAutoDelete;
|
bool mAutoDelete = true;
|
||||||
bool mJoinOnDelete;
|
bool mJoinOnDelete;
|
||||||
|
|
||||||
static Monitor sMonitor = new .() ~ delete _;
|
static Monitor sMonitor = new .() ~ delete _;
|
||||||
|
@ -239,15 +239,19 @@ namespace System.Threading
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
public void Start(bool autoDelete = true)
|
public void Start()
|
||||||
{
|
{
|
||||||
mAutoDelete = autoDelete;
|
|
||||||
StartInternal();
|
StartInternal();
|
||||||
}
|
}
|
||||||
|
|
||||||
public void Start(Object parameter, bool autoDelete = true)
|
public void Start(bool autoDelete)
|
||||||
{
|
{
|
||||||
mAutoDelete = autoDelete;
|
mAutoDelete = autoDelete;
|
||||||
|
Start();
|
||||||
|
}
|
||||||
|
|
||||||
|
public void Start(Object parameter)
|
||||||
|
{
|
||||||
if (mDelegate is ThreadStart)
|
if (mDelegate is ThreadStart)
|
||||||
{
|
{
|
||||||
Runtime.FatalError();
|
Runtime.FatalError();
|
||||||
|
@ -256,6 +260,12 @@ namespace System.Threading
|
||||||
StartInternal();
|
StartInternal();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public void Start(Object parameter, bool autoDelete)
|
||||||
|
{
|
||||||
|
mAutoDelete = autoDelete;
|
||||||
|
Start(parameter);
|
||||||
|
}
|
||||||
|
|
||||||
#if BF_PLATFORM_WINDOWS && !BF_RUNTIME_DISABLE
|
#if BF_PLATFORM_WINDOWS && !BF_RUNTIME_DISABLE
|
||||||
[CLink]
|
[CLink]
|
||||||
static extern int32 _tls_index;
|
static extern int32 _tls_index;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue