mirror of
https://github.com/beefytech/Beef.git
synced 2025-06-12 21:34:11 +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,21 +239,31 @@ namespace System.Threading
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
public void Start(bool autoDelete = true)
|
public void Start()
|
||||||
|
{
|
||||||
|
StartInternal();
|
||||||
|
}
|
||||||
|
|
||||||
|
public void Start(bool autoDelete)
|
||||||
{
|
{
|
||||||
mAutoDelete = autoDelete;
|
mAutoDelete = autoDelete;
|
||||||
StartInternal();
|
Start();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public void Start(Object parameter)
|
||||||
|
{
|
||||||
|
if (mDelegate is ThreadStart)
|
||||||
|
{
|
||||||
|
Runtime.FatalError();
|
||||||
|
}
|
||||||
|
mThreadStartArg = parameter;
|
||||||
|
StartInternal();
|
||||||
|
}
|
||||||
|
|
||||||
public void Start(Object parameter, bool autoDelete = true)
|
public void Start(Object parameter, bool autoDelete)
|
||||||
{
|
{
|
||||||
mAutoDelete = autoDelete;
|
mAutoDelete = autoDelete;
|
||||||
if (mDelegate is ThreadStart)
|
Start(parameter);
|
||||||
{
|
|
||||||
Runtime.FatalError();
|
|
||||||
}
|
|
||||||
mThreadStartArg = parameter;
|
|
||||||
StartInternal();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
#if BF_PLATFORM_WINDOWS && !BF_RUNTIME_DISABLE
|
#if BF_PLATFORM_WINDOWS && !BF_RUNTIME_DISABLE
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue