1
0
This repository has been archived on 2024-09-10. You can view files and clone it, but cannot push or open issues or pull requests.
levedb-mcpe-legacy/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