Opaque pointers and references

… legacy?

anyway here’s my current workaround: https://cybre.tech/SoniEx2/rust.eventbus/src/branch/master/src/lib.rs#L59-L65 (<3 statics and atomics)

Drive-by code-review, if you don’t mind. Don’t use memory_order_relaxed. Relaxed atomics almost never do what you want, and are only a performance gain on ARM and POWER (which probably isn’t worth the danger, anyway). You want memory_order_seq_cmp or whatever it is std::atomic calls it.

Yeah uh, they’re effectively constants, Once is a fence, I know what I’m doing.

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.