Ticket #52476: patch-extra-clang.diff
File patch-extra-clang.diff, 4.3 KB (added by 3add3287 (3add3287), 8 years ago) |
---|
-
src/data/memory_chunk.cc
54 54 55 55 namespace torrent { 56 56 57 const int MemoryChunk::prot_exec; 58 const int MemoryChunk::prot_read; 59 const int MemoryChunk::prot_write; 60 const int MemoryChunk::prot_none; 61 const int MemoryChunk::map_shared; 62 63 const int MemoryChunk::advice_normal; 64 const int MemoryChunk::advice_random; 65 const int MemoryChunk::advice_sequential; 66 const int MemoryChunk::advice_willneed; 67 const int MemoryChunk::advice_dontneed; 68 69 const int MemoryChunk::sync_sync; 70 const int MemoryChunk::sync_async; 71 const int MemoryChunk::sync_invalidate; 72 57 73 uint32_t MemoryChunk::m_pagesize = getpagesize(); 58 74 59 75 inline void -
src/protocol/request_list.cc
52 52 53 53 namespace torrent { 54 54 55 const int request_list_constants::bucket_count; 56 55 57 const instrumentation_enum request_list_constants::instrumentation_added[bucket_count] = { 56 58 INSTRUMENTATION_TRANSFER_REQUESTS_QUEUED_ADDED, 57 59 INSTRUMENTATION_TRANSFER_REQUESTS_UNORDERED_ADDED, -
src/torrent/data/file.cc
50 50 51 51 namespace torrent { 52 52 53 const int File::flag_active; 54 const int File::flag_create_queued; 55 const int File::flag_resize_queued; 56 const int File::flag_fallocate; 57 const int File::flag_previously_created; 58 59 const int File::flag_prioritize_first; 60 const int File::flag_prioritize_last; 61 53 62 File::File() : 54 63 m_fd(-1), 55 64 m_protection(0), -
src/torrent/download.cc
72 72 73 73 namespace torrent { 74 74 75 const int DownloadInfo::flag_open; 76 const int DownloadInfo::flag_active; 77 const int DownloadInfo::flag_compact; 78 const int DownloadInfo::flag_accepting_new_peers; 79 const int DownloadInfo::flag_accepting_seeders; 80 const int DownloadInfo::flag_private; 81 const int DownloadInfo::flag_meta_download; 82 const int DownloadInfo::flag_pex_enabled; 83 const int DownloadInfo::flag_pex_active; 84 85 const int DownloadInfo::public_flags; 86 87 const uint32_t DownloadInfo::unlimited; 88 75 89 const DownloadInfo* Download::info() const { return m_ptr->info(); } 76 90 const download_data* Download::data() const { return m_ptr->data(); } 77 91 -
src/torrent/peer/connection_list.cc
60 60 61 61 namespace torrent { 62 62 63 const int ConnectionList::disconnect_available; 64 const int ConnectionList::disconnect_quick; 65 const int ConnectionList::disconnect_unwanted; 66 const int ConnectionList::disconnect_delayed; 67 63 68 ConnectionList::ConnectionList(DownloadMain* download) : 64 69 m_download(download), m_minSize(50), m_maxSize(100) { 65 70 } -
src/torrent/utils/log.cc
189 189 pthread_mutex_lock(&log_mutex); 190 190 std::for_each(m_first, m_last, std::tr1::bind(&log_slot::operator(), 191 191 std::tr1::placeholders::_1, 192 buffer,192 (const char*)buffer, 193 193 std::distance(buffer, first), 194 194 std::distance(log_groups.begin(), this))); 195 195 if (dump_data != NULL) -
src/utils/instrumentation.h
39 39 40 40 #include <tr1/array> 41 41 42 #include <algorithm> 43 42 44 #include "torrent/common.h" 43 45 #include "torrent/utils/log.h" 44 46 … … 118 120 119 121 inline void 120 122 instrumentation_initialize() { 121 instrumentation_values.assign(int64_t());123 std::fill(instrumentation_values.begin(), instrumentation_values.end(), int64_t()); 122 124 } 123 125 124 126 inline void -
src/utils/queue_buckets.h
251 251 instrumentation_update(constants::instrumentation_total[idx], -difference); 252 252 253 253 // Consider moving these to a temporary dequeue before releasing: 254 std::for_each(begin, end, std::tr1::function<void (value_type )>(&constants::template destroy<value_type>));254 std::for_each(begin, end, std::tr1::function<void (value_type&)>(&constants::template destroy<value_type>)); 255 255 queue_at(idx).erase(begin, end); 256 256 } 257 257 -
src/torrent/download_info.h
52 52 53 53 // This will become a Download 'handle' of kinds. 54 54 55 class DownloadInfo {55 class LIBTORRENT_EXPORT DownloadInfo { 56 56 public: 57 57 typedef std::tr1::function<uint64_t ()> slot_stat_type; 58 58