Skip to content

Commit

Permalink
real fix
Browse files Browse the repository at this point in the history
  • Loading branch information
ibc committed Aug 12, 2024
1 parent 6011976 commit cd06123
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion worker/include/DepLibUring.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ class DepLibUring
class LibUring;

// Whether liburing is enabled or not after runtime checks.
static bool enabled;
thread_local static bool enabled;
thread_local static LibUring* liburing;

public:
Expand Down
2 changes: 1 addition & 1 deletion worker/src/DepLibUring.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
#include <sys/utsname.h>

/* Static variables. */
bool DepLibUring::enabled{ false };
thread_local bool DepLibUring::enabled{ false };
// liburing instance per thread.
thread_local DepLibUring::LibUring* DepLibUring::liburing{ nullptr };
// Completion queue entry array used to retrieve processes tasks.
Expand Down

0 comments on commit cd06123

Please sign in to comment.