minor code cleanup in disk buffer code
This commit is contained in:
parent
d8c022070f
commit
d34973def9
|
@ -42,16 +42,12 @@ POSSIBILITY OF SUCH DAMAGE.
|
|||
|
||||
namespace libtorrent {
|
||||
|
||||
struct disk_io_thread;
|
||||
struct disk_observer;
|
||||
struct disk_buffer_holder;
|
||||
|
||||
struct TORRENT_EXTRA_EXPORT buffer_allocator_interface
|
||||
{
|
||||
virtual void free_disk_buffer(char* b) = 0;
|
||||
virtual void reclaim_blocks(span<aux::block_cache_reference> refs) = 0;
|
||||
protected:
|
||||
~buffer_allocator_interface() {}
|
||||
~buffer_allocator_interface() = default;
|
||||
};
|
||||
|
||||
// The disk buffer holder acts like a ``unique_ptr`` that frees a disk buffer
|
||||
|
|
|
@ -50,7 +50,6 @@ POSSIBILITY OF SUCH DAMAGE.
|
|||
namespace libtorrent {
|
||||
|
||||
namespace aux { struct session_settings; }
|
||||
class alert;
|
||||
struct disk_observer;
|
||||
|
||||
struct TORRENT_EXTRA_EXPORT disk_buffer_pool
|
||||
|
|
|
@ -32,7 +32,6 @@ POSSIBILITY OF SUCH DAMAGE.
|
|||
|
||||
#include "libtorrent/disk_buffer_holder.hpp"
|
||||
#include "libtorrent/storage.hpp" // for storage_interface
|
||||
#include "libtorrent/aux_/block_cache_reference.hpp"
|
||||
|
||||
namespace libtorrent {
|
||||
|
||||
|
@ -92,4 +91,3 @@ namespace libtorrent {
|
|||
|
||||
disk_buffer_holder::~disk_buffer_holder() { reset(); }
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue