Skip to content

Commit

Permalink
cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
actboy168 committed Apr 5, 2024
1 parent b11b75f commit 1387b93
Showing 1 changed file with 5 additions and 7 deletions.
12 changes: 5 additions & 7 deletions binding/lua_thread.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -76,13 +76,6 @@ namespace bee::lua_thread {

using boxchannel = std::shared_ptr<channel>;

struct rpc {
atomic_semaphore sem;
void* data = nullptr;
};
}

namespace bee::lua_thread {
class channelmgr {
public:
channelmgr() {
Expand Down Expand Up @@ -125,6 +118,11 @@ namespace bee::lua_thread {
spinlock mutex;
};

struct rpc {
atomic_semaphore sem;
void* data = nullptr;
};

static channelmgr g_channel;
static std::atomic<int> g_thread_id = -1;
static int THREADID;
Expand Down

0 comments on commit 1387b93

Please sign in to comment.