[thread_safe_signals] multi_threaded.hpp uses same #ifdef as auto_threaded.hpp - no inclusion possible
Hi! yet another thread_safe_signals problem :-) : auto_threaded.hpp:
#ifndef BOOST_SIGNALS_MULTI_THREADED_MODEL_HEADER #define BOOST_SIGNALS_MULTI_THREADED_MODEL_HEADER
multi_threaded.hpp:
#ifndef BOOST_SIGNALS_MULTI_THREADED_MODEL_HEADER #define BOOST_SIGNALS_MULTI_THREADED_MODEL_HEADER
For using multi-thread support the documentations says: "Thus boost/signals/multi_threaded.hpp is not automatically included when you include boost/signal.hpp, and must be included separately if you wish to use multi_threaded." but this can't work because "auto_threaded.hpp" is included in "thread_safe_signal.hpp", thus every (later) include of "multi_threaded.hpp" does nothing. My workaround was just changing multi_threaded.hpp to
#ifndef BOOST_SIGNALS_MULTI_THREADED_MODEL_HEADER_MULTI #define BOOST_SIGNALS_MULTI_THREADED_MODEL_HEADER_MULTI
but this should also be changed in the downloadable archives. Kindest regards Raimar Wagner
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On Tuesday 29 January 2008 10:11 am, raimar wagner wrote:
Hi! yet another thread_safe_signals problem :-) :
auto_threaded.hpp:
#ifndef BOOST_SIGNALS_MULTI_THREADED_MODEL_HEADER #define BOOST_SIGNALS_MULTI_THREADED_MODEL_HEADER
multi_threaded.hpp:
#ifndef BOOST_SIGNALS_MULTI_THREADED_MODEL_HEADER #define BOOST_SIGNALS_MULTI_THREADED_MODEL_HEADER
For using multi-thread support the documentations says: "Thus boost/signals/multi_threaded.hpp is not automatically included when you include boost/signal.hpp, and must be included separately if you wish to use multi_threaded." but this can't work because "auto_threaded.hpp" is included in "thread_safe_signal.hpp", thus every (later) include of "multi_threaded.hpp" does nothing.
Thanks for catching that, fixed in svn now. - -- Frank -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.6 (GNU/Linux) iD8DBQFHn5Iw5vihyNWuA4URAg19AJ4jlL9hB3ZYM89sHWIyOKsIF/DG8gCdHz0u nYWpNxmopYPPC4GBc0Y70Zc= =6urN -----END PGP SIGNATURE-----
participants (2)
-
Frank Mori Hess
-
raimar wagner