Now that generics exists, it might be good to add a generic atomic (pointer) value to contain the use of unsafe.Pointers to low-level library code (not in this PR). Maybe Uber's atomic library already has something?
Originally posted by @misberner in #3568 (review)