Signals vs Signals2

5.3k views Asked by At

I have application that may benefit from using one of boost's signals libraries over a homegrown solution.

The application is multithreaded but the part that does the signal processing is single threaded.

Is there any reason to prefer Boost.Signals2 over Boost.Signal if multithreading is not an issue?

2

There are 2 answers

2
Paulo On BEST ANSWER

Boost.Signals is now deprecated, and Boost.Signals2 should be used instead (see v1.54 docs)

1
Nathan Monteleone On

Originally, if all the signals and slots were in the same thread, boost.signals was just fine. However, it is no longer being maintained -- the documentation suggests using signals2 in all new code.