Make thread constructors consistent across platforms.
This commit is contained in:
parent
a4e6078e88
commit
7ad19f5693
@ -38,7 +38,7 @@ class posix_thread
|
||||
public:
|
||||
// Constructor.
|
||||
template <typename Function>
|
||||
posix_thread(Function f)
|
||||
posix_thread(Function f, unsigned int = 0)
|
||||
: joined_(false)
|
||||
{
|
||||
start_thread(new func<Function>(f));
|
||||
|
@ -38,7 +38,7 @@ class wince_thread
|
||||
public:
|
||||
// Constructor.
|
||||
template <typename Function>
|
||||
wince_thread(Function f)
|
||||
wince_thread(Function f, unsigned int = 0)
|
||||
{
|
||||
std::auto_ptr<func_base> arg(new func<Function>(f));
|
||||
DWORD thread_id = 0;
|
||||
|
Loading…
Reference in New Issue
Block a user