@monster agree the windows api is weird . Unfortunately I have not much experience with the vcc(thread model and so on) I just need atomicLoad and atomicStore. Also I don“t know what happens if you use the Nim compiler (built with gcc) and then the vcc to compile your app. It works for me actually.
Iam using now interlockedAnd(atomicLoad) and interlockedExchange(atomicStore). see here (at line 75/180). works perfect for me. [https://github.com/mikra01/timerpool/blob/master/timerpool.nim](https://github.com/mikra01/timerpool/blob/master/timerpool.nim) both native calls are missing within atomics.nim. what do you think?
