25 #define _HandlePool_h 1
32 #include <curl/curl.h>
43 pthread_mutex_t& m_mutex;
49 Lock(pthread_mutex_t &lock);
65 char d_errbuf[CURL_ERROR_SIZE];
115 unsigned int d_max_easy_handles;
117 std::vector<dmrpp_easy_handle *> d_easy_handles;
121 pthread_mutex_t d_get_easy_handle_mutex;
130 for (std::vector<dmrpp_easy_handle *>::iterator i = d_easy_handles.begin(), e = d_easy_handles.end(); i != e; ++i) {
134 delete d_multi_handle;
137 unsigned int get_max_handles()
const
139 return d_max_easy_handles;
144 return d_multi_handle;
154 #endif // _HandlePool_h