Skip to content

Commit

Permalink
Make global pool resource thread-local (#487)
Browse files Browse the repository at this point in the history
  • Loading branch information
calcmogul authored Apr 5, 2024
1 parent ad884ed commit 1ed64b4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/util/Pool.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
namespace sleipnir {

PoolResource& GlobalPoolResource() {
static PoolResource pool{16384};
thread_local PoolResource pool{16384};
return pool;
}

Expand Down

0 comments on commit 1ed64b4

Please sign in to comment.