solo5 icon indicating copy to clipboard operation
solo5 copied to clipboard

Enforce that solo5_{block,net}_acquire() may only be called once

Open mato opened this issue 5 years ago • 1 comments

(...)

Having said that, I can see how _acquire_ implies a transition of some kind, so perhaps it'd be better to just change the docs (solo5.h) to say that you're only allowed to call it once per handle?

Originally posted by @mato in https://github.com/Solo5/solo5/pull/402

mato avatar Sep 18 '19 14:09 mato

This is partially addressed by documenting the intended behaviour in solo5.h in #407. Actually enforcing this for hvt and spt is surprisingly hard due to the bindings-owned manifest structures being read-only, so leaving this open for dealing with in a future iteration/re-evaluation of how the manifest structures are dealt with.

mato avatar Sep 18 '19 14:09 mato