JBThreadList Class Reference

A list of private threads. More...

#include <yatejabber.h>

Inheritance diagram for JBThreadList:

JBEngine JBMessage JBPresence JGEngine

List of all members.

Public Member Functions

DebugEnablerowner () const
void cancelThreads (bool wait=true, bool hard=false)

Protected Member Functions

 JBThreadList (DebugEnabler *owner=0)
void setOwner (DebugEnabler *dbg)

Friends

class JBThread


Detailed Description

A list of private threads.

This class holds a list of private threads for an object that wants to terminate them on destroy


Constructor & Destructor Documentation

JBThreadList ( DebugEnabler owner = 0  )  [inline, protected]

Constructor

Parameters:
owner The owner of this list


Member Function Documentation

DebugEnabler* owner (  )  const [inline]

Get the enabler owning this list

Returns:
The owner of this list

void cancelThreads ( bool  wait = true,
bool  hard = false 
)

Cancel all threads This method is thread safe

Parameters:
wait True to wait for the threads to terminate
hard Kill the threads the hard way rather than just setting an exit check marker

void setOwner ( DebugEnabler dbg  )  [inline, protected]

Set the enabler owning this list

Parameters:
dbg The new owner of this list

Referenced by JBMessage::JBMessage().


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

Generated on Mon Aug 11 16:18:53 2008 for Yate by  doxygen 1.5.6