On 10/13/2026 12:37 AM, Chris M. Thomasson wrote:
So, I have the most recent version and coded up my old multex algo. It
100% dead lock free and allows a thread to locks multiple objects in any order and lock them. All of the lock ordering is taken care of in the finalize function. Basically a thread seeds its per thread lock indices
with addresses to objects it wants to lock. Calls finalize, then locks
them. Does its thing and then unlocks them. Fwiw, here is my Relacy test output:
struct ct_multex_relacy_test_v000
65% (65536/100000)
iterations: 100000
total time: 9390
throughput: 10649
D:\ct_dev\ct_msvc\projects\ct_relacy_test\x64\Debug\ct_relacy_test.exe (process 13356) exited with code 0 (0x0).
Press any key to close this window . . .
Any my code:
[...]
Fwiw, header only Relacy can be found here:
https://github.com/dvyukov/relacy
--- PyGate Linux v1.5.19
* Origin: Dragon's Lair, PyGate NNTP<>Fido Gate (3:633/10)