|
Last change
on this file since 29 was
29,
checked in by landauf, 17 years ago
|
|
updated boost from 1_33_1 to 1_34_1
|
|
File size:
685 bytes
|
| Line | |
|---|
| 1 | // (C) Copyright John Maddock 2001. |
|---|
| 2 | // Use, modification and distribution are subject to the |
|---|
| 3 | // Boost Software License, Version 1.0. (See accompanying file |
|---|
| 4 | // LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) |
|---|
| 5 | |
|---|
| 6 | // See http://www.boost.org/libs/config for most recent version. |
|---|
| 7 | |
|---|
| 8 | // MACRO: BOOST_HAS_WINTHREADS |
|---|
| 9 | // TITLE: MS Windows threads |
|---|
| 10 | // DESCRIPTION: The platform supports MS Windows style threads. |
|---|
| 11 | |
|---|
| 12 | #include <windows.h> |
|---|
| 13 | |
|---|
| 14 | |
|---|
| 15 | namespace boost_has_winthreads{ |
|---|
| 16 | |
|---|
| 17 | int test() |
|---|
| 18 | { |
|---|
| 19 | HANDLE h = CreateMutex(0, 0, 0); |
|---|
| 20 | if(h != NULL) |
|---|
| 21 | { |
|---|
| 22 | WaitForSingleObject(h, INFINITE); |
|---|
| 23 | ReleaseMutex(h); |
|---|
| 24 | CloseHandle(h); |
|---|
| 25 | } |
|---|
| 26 | return 0; |
|---|
| 27 | } |
|---|
| 28 | |
|---|
| 29 | } |
|---|
| 30 | |
|---|
| 31 | |
|---|
| 32 | |
|---|
| 33 | |
|---|
| 34 | |
|---|
Note: See
TracBrowser
for help on using the repository browser.