Questions tagged [boost-signals2]

The Boost.Signals2 library is a thread-safe C++ implementation of a managed signals and slots system.

The Boost.Signals2 library is a thread-safe C++ implementation of a managed signals and slots system. Signals represent callbacks with multiple targets, and are also called publishers or events in similar systems. Signals are connected to some set of slots, which are callback receivers (also called event targets or subscribers), which are called when the signal is "emitted."

Signals and slots are managed, in that signals and slots (or, more properly, objects that occur as part of the slots) can track connections and are capable of automatically disconnecting signal/slot connections when either is destroyed. This enables the user to make signal/slot connections without expending a great effort to manage the lifetimes of those connections with regard to the lifetimes of all objects involved.

When signals are connected to multiple slots, there is a question regarding the relationship between the return values of the slots and the return value of the signals. Boost.Signals2 allows the user to specify the manner in which multiple return values are combined.

109 questions
0
votes
2 answers

How to pass signal callbacks (using boost::bind)

I'm writing a wrapper for boost::signals2::signal to get a cleaner, more easy to use interface. Here's what I've come up with: #include // Wrapper class template for boost::signals2::signal template class Signal { …
Jonatan
  • 3,752
  • 4
  • 36
  • 47
0
votes
1 answer

Is this a correct and appropriate way to use boost signals?

I am creating an MVC application and I want a way for the model to be able to send output text to the GUI to be displayed. A few people have recommended function pointers but I have now learned that if you pass a function pointer of a member…
Armada
  • 718
  • 8
  • 19
0
votes
1 answer

Boost signals during destructor causing sigabrt

I started tracking object destruction using boost::signals2. I wrote a small test just to see if I could still use signals in destructors here. It seemed to work. I then started using it for tracking lists of objects which reference other ones. My…
0
votes
0 answers

Boost bootstrap.bat crashes in my DOS cmd line

I had copied the boost directory of a colleague. It was running fine out of the box as is. But now I have a problem, I have some new code using boost.signals that compiles well but doesn't link since I don't have the…
Stephane Rolland
  • 38,876
  • 35
  • 121
  • 169
1 2 3 4 5 6 7
8