qthreads
qthreads copied to clipboard
Adjust Fences in Syncvar Implementation
It seems like the syncvar implementation needs an equivalent of https://github.com/sandialabs/qthreads/pull/250. I've spent some time reviewing the syncvar implementation and it's distinct enough that there's not an exact analog of those changes, however we need to check that a fence happens reliably even when the value of the FEB isn't requested via the API (either by passing the same FEB as input and output or passing a null destination). The syncvar code seems much less susceptible to issues here than the aligned_t implementation was, but I'd still like to check it more carefully to make sure everything is okay.