mirror of
https://github.com/luanti-org/luanti.git
synced 2025-06-27 16:36:03 +00:00
Add generic IPC mechanism between Lua envs
This commit is contained in:
parent
06907aa99b
commit
f1a436619f
12 changed files with 191 additions and 19 deletions
|
@ -86,6 +86,15 @@ public:
|
|||
{}
|
||||
};
|
||||
|
||||
ModIPCStore::~ModIPCStore()
|
||||
{
|
||||
// we don't have to do this, it's pure debugging aid
|
||||
if (!std::unique_lock(mutex, std::try_to_lock).owns_lock()) {
|
||||
errorstream << FUNCTION_NAME << ": lock is still in use!" << std::endl;
|
||||
assert(0);
|
||||
}
|
||||
}
|
||||
|
||||
class ServerThread : public Thread
|
||||
{
|
||||
public:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue