|
Last change
on this file since 47 was
29,
checked in by landauf, 17 years ago
|
|
updated boost from 1_33_1 to 1_34_1
|
|
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 | |
|---|
| 18 | namespace boost { |
|---|
| 19 | |
|---|
| 20 | namespace threads { |
|---|
| 21 | |
|---|
| 22 | namespace mac { |
|---|
| 23 | |
|---|
| 24 | namespace detail { |
|---|
| 25 | |
|---|
| 26 | |
|---|
| 27 | namespace { |
|---|
| 28 | |
|---|
| 29 | // force these to get called by the end of static initialization time. |
|---|
| 30 | static bool g_bInitialized = (thread_init() && create_singletons()); |
|---|
| 31 | |
|---|
| 32 | } |
|---|
| 33 | |
|---|
| 34 | |
|---|
| 35 | bool thread_init() |
|---|
| 36 | { |
|---|
| 37 | static bool bResult = MPLibraryIsLoaded(); |
|---|
| 38 | |
|---|
| 39 | return(bResult); |
|---|
| 40 | } |
|---|
| 41 | |
|---|
| 42 | bool 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.