glibmm: Glib::SignalChildWatch Class Reference
#include </home/kjell/checkout/gnome/glibmm-2.4/glib/glibmm/main.h>
Public Member Functions | |
| sigc::connection | connect (const sigc::slot< void, GPid, int >& slot, GPid pid, int priority=PRIORITY_DEFAULT) |
| Connects a child watch handler. More... | |
Member Function Documentation
| sigc::connection Glib::SignalChildWatch::connect | ( | const sigc::slot< void, GPid, int > & | slot, |
| GPid | pid, | ||
| int | priority = PRIORITY_DEFAULT |
||
| ) |
Connects a child watch handler.
void child_watch_handler(GPid pid, int child_status) { ... }
This method is not thread-safe. You should call it, or manipulate the returned sigc::connection object, only from the thread where the SignalChildWatch object's MainContext runs.
- Parameters
-
slot A slot to call when child process pid exited. pid The child process to watch for. priority The priority of the new event source.
- Returns
- A connection handle, which can be used to disconnect the handler.
