Index: thread.cpp =================================================================== --- thread.cpp (revision 41288) +++ thread.cpp (working copy) @@ -210,7 +210,11 @@ { ++count; interruption_enabled=false; +#ifndef UNDER_CE thread_handle=detail::win32::duplicate_handle(detail::win32::GetCurrentThread()); +#else + thread_handle=reinterpret_cast( detail::win32::GetCurrentThreadId() ); +#endif } void run() @@ -547,3 +551,4 @@ boost::run_thread_exit_callbacks(); } +