libtorrent::alert_manager Class Reference

#include <alert.hpp>

List of all members.

Public Member Functions

 alert_manager ()
 ~alert_manager ()
void post_alert (const alert &alert_)
bool pending () const
std::auto_ptr< alertget ()
void set_severity (alert::severity_t severity)
bool should_post (alert::severity_t severity) const

Private Attributes

std::queue< alert * > m_alerts
alert::severity_t m_severity
boost::mutex m_mutex


Detailed Description

Definition at line 87 of file alert.hpp.


Constructor & Destructor Documentation

libtorrent::alert_manager::alert_manager (  ) 

Definition at line 38 of file alert.cpp.

libtorrent::alert_manager::~alert_manager (  ) 

Definition at line 42 of file alert.cpp.

References m_alerts.


Member Function Documentation

void libtorrent::alert_manager::post_alert ( const alert alert_  ) 

bool libtorrent::alert_manager::pending (  )  const

Definition at line 77 of file alert.cpp.

References m_alerts, and m_mutex.

Referenced by libtorrent::aux::session_impl::pop_alert().

std::auto_ptr< alert > libtorrent::alert_manager::get (  ) 

Definition at line 66 of file alert.cpp.

References m_alerts, and m_mutex.

Referenced by libtorrent::aux::session_impl::pop_alert().

void libtorrent::alert_manager::set_severity ( alert::severity_t  severity  ) 

Definition at line 84 of file alert.cpp.

References m_mutex, and m_severity.

Referenced by libtorrent::aux::session_impl::set_severity_level().

bool libtorrent::alert_manager::should_post ( alert::severity_t  severity  )  const


Member Data Documentation

Definition at line 101 of file alert.hpp.

Referenced by get(), pending(), post_alert(), and ~alert_manager().

Definition at line 102 of file alert.hpp.

Referenced by post_alert(), set_severity(), and should_post().

boost::mutex libtorrent::alert_manager::m_mutex [mutable, private]

Definition at line 103 of file alert.hpp.

Referenced by get(), pending(), post_alert(), and set_severity().


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

Generated on Sun May 25 00:21:39 2008 by  doxygen 1.5.6