#include <yatejabber.h>
Public Member Functions | |
DebugEnabler * | owner () const |
void | cancelThreads (bool wait=true, bool hard=false) |
Protected Member Functions | |
JBThreadList (DebugEnabler *owner=0) | |
void | setOwner (DebugEnabler *dbg) |
Friends | |
class | JBThread |
This class holds a list of private threads for an object that wants to terminate them on destroy
JBThreadList | ( | DebugEnabler * | owner = 0 |
) | [inline, protected] |
Constructor
owner | The owner of this list |
void cancelThreads | ( | bool | wait = true , |
|
bool | hard = false | |||
) |
Cancel all threads This method is thread safe
wait | True to wait for the threads to terminate | |
hard | Kill the threads the hard way rather than just setting an exit check marker |
DebugEnabler* owner | ( | ) | const [inline] |
Get the enabler owning this list
void setOwner | ( | DebugEnabler * | dbg | ) | [inline, protected] |
Set the enabler owning this list
dbg | The new owner of this list |
Referenced by JBMessage::JBMessage().