Skip to content

Commit 46bffa8

Browse files
committed
added #include <cstring> for std::memcpy
1 parent d7afa4b commit 46bffa8

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

include/core/composable/interprocess_decorator.hpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@
1313
#include <functional>
1414
#include <fstream>
1515
#include <queue>
16+
#include <cstring>
1617

1718
#ifdef _WIN32
1819
#include <windows.h>
@@ -344,7 +345,7 @@ class SharedMemoryChannel : public IPCChannel<T> {
344345
std::unique_lock<std::mutex> lock(*mutex_);
345346

346347
// For simplicity, we'll use a timeout-based approach
347-
if (!condition_->wait_for(lock, std::chrono::milliseconds(100))) {
348+
if (condition_->wait_for(lock, std::chrono::milliseconds(100)) == std::cv_status::timeout) {
348349
return false;
349350
}
350351

0 commit comments

Comments
 (0)