Boost logo

Boost Users :

From: raimar wagner (raimar.wagner_at_[hidden])
Date: 2008-01-29 10:11:39


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


Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net