Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: downloads/boost_1_33_1/libs/thread/src/mac/init.cpp @ 12

Last change on this file since 12 was 12, checked in by landauf, 17 years ago

added boost

File size: 977 bytes
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#include "init.hpp"
9
10#include "remote_call_manager.hpp"
11
12
13#include <boost/thread/detail/singleton.hpp>
14
15#include <Multiprocessing.h>
16
17
18namespace boost {
19
20namespace threads {
21
22namespace mac {
23
24namespace detail {
25
26
27namespace {
28
29// force these to get called by the end of static initialization time.
30static bool g_bInitialized = (thread_init() && create_singletons());
31
32}
33
34
35bool thread_init()
36{
37    static bool bResult = MPLibraryIsLoaded();
38
39    return(bResult);
40}
41
42bool create_singletons()
43{
44    using ::boost::detail::thread::singleton;
45
46    singleton<remote_call_manager>::instance();
47
48    return(true);
49}
50
51
52} // namespace detail
53
54} // namespace mac
55
56} // namespace threads
57
58} // namespace boost
Note: See TracBrowser for help on using the repository browser.