~ubuntu-branches/ubuntu/maverick/libtorrent-rasterbar/maverick

« back to all changes in this revision

Viewing changes to include/libtorrent/connection_queue.hpp

  • Committer: Bazaar Package Importer
  • Author(s): Christophe Sauthier
  • Date: 2010-08-10 12:59:37 UTC
  • mfrom: (1.3.7 upstream)
  • Revision ID: james.westby@ubuntu.com-20100810125937-jbcmmf17y8yo9hgz
Tags: 0.15.0-0ubuntu1
* New upstream version.
* debian/patches/100_fix_html_docs.patch: refreshed.
* debian/control: bump up standards-version to 3.9.1 (no changes).

Show diffs side-by-side

added added

removed removed

Lines of Context:
36
36
#include <list>
37
37
#include <boost/function.hpp>
38
38
#include <boost/noncopyable.hpp>
39
 
#include <boost/thread/recursive_mutex.hpp>
 
39
#include <boost/thread/mutex.hpp>
40
40
#include "libtorrent/socket.hpp"
41
41
#include "libtorrent/time.hpp"
42
42
 
47
47
namespace libtorrent
48
48
{
49
49
 
50
 
class connection_queue : public boost::noncopyable
 
50
class TORRENT_EXPORT connection_queue : public boost::noncopyable
51
51
{
52
52
public:
53
53
        connection_queue(io_service& ios);
71
71
 
72
72
private:
73
73
 
74
 
        void try_connect();
 
74
        typedef boost::mutex mutex_t;
 
75
 
 
76
        void try_connect(mutex_t::scoped_lock& l);
75
77
        void on_timeout(error_code const& e);
 
78
        void on_try_connect();
76
79
 
77
80
        struct entry
78
81
        {
98
101
 
99
102
        deadline_timer m_timer;
100
103
 
101
 
        typedef boost::recursive_mutex mutex_t;
102
104
        mutable mutex_t m_mutex;
103
105
 
104
106
#ifdef TORRENT_DEBUG