From 1de858a76fae20b47e21e8253111c369670929aa Mon Sep 17 00:00:00 2001 From: Andrey Semashev Date: Sun, 29 Sep 2013 16:42:24 +0000 Subject: [PATCH] Finished POSIX condition_variable, working on Windows. [SVN r86007] --- include/boost/detail/winapi/handles.hpp | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) diff --git a/include/boost/detail/winapi/handles.hpp b/include/boost/detail/winapi/handles.hpp index d4cffc8..7108daa 100644 --- a/include/boost/detail/winapi/handles.hpp +++ b/include/boost/detail/winapi/handles.hpp @@ -24,14 +24,20 @@ namespace winapi #if defined( BOOST_USE_WINDOWS_H ) using ::CloseHandle; using ::DuplicateHandle; + + const DWORD_ duplicate_close_source = DUPLICATE_CLOSE_SOURCE; + const DWORD_ duplicate_same_access = DUPLICATE_SAME_ACCESS; + const HANDLE_ invalid_handle_value = INVALID_HANDLE_VALUE; #else -extern "C" { - __declspec(dllimport) int __stdcall +extern "C" { + __declspec(dllimport) int __stdcall CloseHandle(void*); - __declspec(dllimport) int __stdcall + __declspec(dllimport) int __stdcall DuplicateHandle(void*,void*,void*,void**,unsigned long,int,unsigned long); } - + const DWORD_ duplicate_close_source = 1; + const DWORD_ duplicate_same_access = 2; + const HANDLE_ invalid_handle_value = (HANDLE_)(-1); #endif } }