mirror of
https://github.com/beefytech/Beef.git
synced 2025-06-10 12:32:20 +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;
|
||||
|
||||
bool mAutoDelete;
|
||||
bool mAutoDelete = true;
|
||||
bool mJoinOnDelete;
|
||||
|
||||
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;
|
||||
StartInternal();
|
||||
mAutoDelete = autoDelete;
|
||||
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;
|
||||
if (mDelegate is ThreadStart)
|
||||
{
|
||||
Runtime.FatalError();
|
||||
}
|
||||
mThreadStartArg = parameter;
|
||||
StartInternal();
|
||||
Start(parameter);
|
||||
}
|
||||
|
||||
#if BF_PLATFORM_WINDOWS && !BF_RUNTIME_DISABLE
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue