2
0
mirror of https://github.com/boostorg/thread.git synced 2026-02-09 11:32:12 +00:00

Applied some of David Deakins' patches for WinCE

[SVN r35532]
This commit is contained in:
Anthony Williams
2006-10-10 07:34:48 +00:00
parent 72e4794f5b
commit c46b040f6f
2 changed files with 6 additions and 7 deletions

View File

@@ -18,6 +18,7 @@
using std::size_t;
# endif
# include <windows.h>
# include "mutex.inl"
# if defined(BOOST_NO_STRINGSTREAM)
# include <strstream>
@@ -137,11 +138,7 @@ void call_once(void (*func)(), once_flag& flag)
<< &flag
<< std::ends;
unfreezer unfreeze(strm);
# if defined (BOOST_NO_ANSI_APIS)
USES_CONVERSION;
HANDLE mutex = CreateMutexW(NULL, FALSE, A2CW(strm.str()));
# else
HANDLE mutex = CreateMutexA(NULL, FALSE, strm.str());
HANDLE mutex=new_mutex(strm.str());
# endif
#else
# if defined (BOOST_NO_ANSI_APIS)