mirror of
https://git.eden-emu.dev/eden-emu/eden
synced 2026-04-10 05:28:56 +02:00
fixup the stupid boost map
This commit is contained in:
parent
902c457094
commit
b85ada5d0f
1 changed files with 10 additions and 1 deletions
|
|
@ -12,7 +12,11 @@
|
||||||
#include <memory>
|
#include <memory>
|
||||||
#include <mutex>
|
#include <mutex>
|
||||||
#include <optional>
|
#include <optional>
|
||||||
|
#if BOOST_VERSION >= 109000
|
||||||
#include <boost/unordered/unordered_node_map.hpp>
|
#include <boost/unordered/unordered_node_map.hpp>
|
||||||
|
#else
|
||||||
|
#include <unordered_map>
|
||||||
|
#endif
|
||||||
#include <ankerl/unordered_dense.h>
|
#include <ankerl/unordered_dense.h>
|
||||||
#include <assert.h>
|
#include <assert.h>
|
||||||
|
|
||||||
|
|
@ -141,7 +145,12 @@ public:
|
||||||
void UnmapAllHandles(NvCore::SessionId session_id);
|
void UnmapAllHandles(NvCore::SessionId session_id);
|
||||||
|
|
||||||
std::list<Handle::Id> unmap_queue{};
|
std::list<Handle::Id> unmap_queue{};
|
||||||
boost::unordered_node_map<Handle::Id, Handle> handles{}; //!< Main owning map of handles
|
/// Main owning map of handles
|
||||||
|
#if BOOST_VERSION >= 109000
|
||||||
|
boost::unordered_node_map<Handle::Id, Handle> handles{};
|
||||||
|
#else
|
||||||
|
std::unordered_map<Handle::Id, Handle> handles{};
|
||||||
|
#endif
|
||||||
std::mutex unmap_queue_lock{}; //!< Protects access to `unmap_queue`
|
std::mutex unmap_queue_lock{}; //!< Protects access to `unmap_queue`
|
||||||
std::mutex handles_lock; //!< Protects access to `handles`
|
std::mutex handles_lock; //!< Protects access to `handles`
|
||||||
static constexpr u32 HandleIdIncrement{4}; //!< Each new handle ID is an increment of 4 from the previous
|
static constexpr u32 HandleIdIncrement{4}; //!< Each new handle ID is an increment of 4 from the previous
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue