Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: downloads/boost_1_34_1/libs/thread/src/mac/safe.hpp @ 29

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: 1.1 KB
Line 
1// (C) Copyright Mac Murrett 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 for most recent version.
7
8#ifndef BOOST_SAFE_MJM012402_HPP
9#define BOOST_SAFE_MJM012402_HPP
10
11
12#include <Multiprocessing.h>
13
14
15namespace boost {
16
17namespace threads {
18
19namespace mac {
20
21namespace detail {
22
23
24// these functions are used to wain in an execution context-independent manor.  All of these
25//  functions are both MP- and ST-safe.
26
27OSStatus safe_wait_on_semaphore(MPSemaphoreID pSemaphoreID, Duration lDuration);
28OSStatus safe_enter_critical_region(MPCriticalRegionID pCriticalRegionID, Duration lDuration, MPCriticalRegionID pCriticalRegionCriticalRegionID = kInvalidID);
29OSStatus safe_wait_on_queue(MPQueueID pQueueID, void **pParam1, void **pParam2, void **pParam3, Duration lDuration);
30OSStatus safe_delay_until(AbsoluteTime *pWakeUpTime);
31
32
33} // namespace detail
34
35} // namespace mac
36
37} // namespace threads
38
39} // namespace boost
40
41#endif // BOOST_SAFE_MJM012402_HPP
Note: See TracBrowser for help on using the repository browser.