cwidget  0.5.17
Public Member Functions | List of all members
cwidget::toplevel::slot_event Class Reference

An event based on sigc++ slots. More...

#include <toplevel.h>

Inheritance diagram for cwidget::toplevel::slot_event:
cwidget::toplevel::event

Public Member Functions

 slot_event (const sigc::slot0< void > &_the_slot)
 
void dispatch ()
 

Detailed Description

An event based on sigc++ slots.

This is important because it can avoid some timing issues that occur when an object is destroyed before its callback triggers. However, you cannot construct one of these threadsafely unless you are EXTREMELY careful, because it involves a slot copy; as with other sigc++ stuff, I recommend that you only create these in the 'main thread'. (of course, passing around pointers to the resulting object is just fine, as long as the final invocation is also in the main thread)


The documentation for this class was generated from the following files: