mratsim / weave

A state-of-the-art multithreading runtime: message-passing based, fast, scalable, ultra-low overhead
Other
532 stars 22 forks source link

adapt weave to non-var destructors #196

Closed ringabout closed 7 months ago

ringabout commented 7 months ago

ref https://github.com/nim-lang/Nim/pull/22975

mratsim commented 7 months ago

But deinitCond and deinitLock require var, see: https://nim-lang.org/docs/locks.html#deinitCond%2CSysCond

ringabout commented 7 months ago

Indeed, I suppose it needs to be defined as ptr Cond or something. Neverthless, it's goint to be put behind a flag and var T destructors will become an error.