adapt: adapt gmlib 1.0.0-rc.2 and levilamina 1.1.0
This commit is contained in:
+6
-2
@@ -1,6 +1,7 @@
|
||||
#pragma once
|
||||
#include <ll/api/mod/NativeMod.h>
|
||||
#include <ll/api/mod/RegisterHelper.h>
|
||||
#include <ll/api/thread/ThreadPoolExecutor.h>
|
||||
|
||||
namespace gmlib {
|
||||
|
||||
@@ -9,7 +10,7 @@ class LegacyRemoteCallApi {
|
||||
public:
|
||||
static LegacyRemoteCallApi& getInstance();
|
||||
|
||||
LegacyRemoteCallApi() : mSelf(*ll::mod::NativeMod::current()) {}
|
||||
LegacyRemoteCallApi() : mSelf(*ll::mod::NativeMod::current()), mThreadPoolExecutor(getSelf().getName()) {}
|
||||
|
||||
[[nodiscard]] ll::mod::NativeMod& getSelf() const { return mSelf; }
|
||||
|
||||
@@ -26,8 +27,11 @@ public:
|
||||
// /// @return True if the plugin is unloaded successfully.
|
||||
// bool unload();
|
||||
|
||||
ll::thread::ThreadPoolExecutor& getThreadPoolExecutor() { return mThreadPoolExecutor; }
|
||||
|
||||
private:
|
||||
ll::mod::NativeMod& mSelf;
|
||||
ll::mod::NativeMod& mSelf;
|
||||
ll::thread::ThreadPoolExecutor mThreadPoolExecutor;
|
||||
};
|
||||
|
||||
} // namespace gmlib
|
||||
|
||||
Reference in New Issue
Block a user