diff --git a/README.md b/README.md index 625bd0b..3cc6116 100644 --- a/README.md +++ b/README.md @@ -17,7 +17,7 @@ This library provides remote function calls and variable sharing functions This library was developed and modified with Visual Studio 2019
# Download -[https://github.com/gellston/Spider-IPC/releases/tag/1.3](https://github.com/gellston/Spider-IPC/releases/tag/1.3) +[https://github.com/gellston/Spider-IPC/releases/tag/1.4](https://github.com/gellston/Spider-IPC/releases/tag/1.4) # Getting Started diff --git a/SpiderNative/SpiderNative/SipderIPC.cpp b/SpiderNative/SpiderNative/SipderIPC.cpp index b6e1adf..6a346cd 100644 --- a/SpiderNative/SpiderNative/SipderIPC.cpp +++ b/SpiderNative/SpiderNative/SipderIPC.cpp @@ -2518,6 +2518,8 @@ spider::function::function(std::string name, std::functionpimpl->function_start_handle, INFINITE); + + // mutex spider::spider_raii raii_bloacker([&]() { ReleaseMutex(this->pimpl->function_blocker); }); @@ -2534,7 +2536,7 @@ spider::function::function(std::string name, std::functionpimpl->function_blocker); + }); + DWORD blocker_ret = WaitForSingleObject(this->pimpl->function_blocker, INFINITE); + switch (blocker_ret) { + case WAIT_OBJECT_0: + break; + case WAIT_TIMEOUT: + throw std::exception("Time out"); + break; + case WAIT_FAILED: + throw std::exception("Unexpected error"); + break; + default: + break; + } + // mutex + + } diff --git a/lib/SpiderNative-x64-v120.zip b/lib/SpiderNative-x64-v120.zip index e6944f5..e9d52c3 100644 Binary files a/lib/SpiderNative-x64-v120.zip and b/lib/SpiderNative-x64-v120.zip differ diff --git a/lib/SpiderNative-x64-v142-windows10.zip b/lib/SpiderNative-x64-v142-windows10.zip index 88652a2..215a0f6 100644 Binary files a/lib/SpiderNative-x64-v142-windows10.zip and b/lib/SpiderNative-x64-v142-windows10.zip differ diff --git a/lib/SpiderNative-x86-v120.zip b/lib/SpiderNative-x86-v120.zip index c6281f7..e0d6d1e 100644 Binary files a/lib/SpiderNative-x86-v120.zip and b/lib/SpiderNative-x86-v120.zip differ diff --git a/lib/SpiderSharp-x64-NetCore3.1-windows10.zip b/lib/SpiderSharp-x64-NetCore3.1-windows10.zip index 614e4bd..6afa5fa 100644 Binary files a/lib/SpiderSharp-x64-NetCore3.1-windows10.zip and b/lib/SpiderSharp-x64-NetCore3.1-windows10.zip differ