Make thread constructors consistent across platforms.

This commit is contained in:
Christopher Kohlhoff 2011-02-08 15:23:00 +11:00
parent a4e6078e88
commit 7ad19f5693
2 changed files with 2 additions and 2 deletions

View File

@ -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));

View File

@ -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;