Closed nfrmtkr closed 8 months ago
Please also open a PR with the unit test extension as reprocuder
The test Future_Test.cpp will test this from functional point of view. The issue can't be easily reproduced. It requires fast machines and it depends on the CPU and compiler being used.
Added new test "Future_Stress_Test"
Thanks!
Fixed a race condition caused by the double checked locking pattern by using an std::atomic that ensures correct and deterministic create and assignment logic. Issue #2163