1
0
mirror of https://github.com/Amulet-Team/leveldb-mcpe.git synced 2024-11-24 01:46:16 +00:00
leveldb-amulet/include/leveldb/decompress_allocator.h

26 lines
427 B
C++

#pragma once
#ifndef LEVELDB_DECOMPRESS_ALLOCATOR_H_
#define LEVELDB_DECOMPRESS_ALLOCATOR_H_
#include <mutex>
#include <vector>
#include <string>
namespace leveldb {
class DLLX DecompressAllocator {
public:
virtual ~DecompressAllocator();
virtual std::string get();
virtual void release(std::string&& string);
virtual void prune();
protected:
std::mutex mutex;
std::vector<std::string> stack;
};
}
#endif