mratsim / weave

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

adapt weave to non-var destructors #196

Closed ringabout closed 1 year ago

ringabout commented 1 year ago

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

mratsim commented 1 year ago

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

ringabout commented 1 year 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.