This function name doesn't suggest to me what it does (call a function you pass in)
My suggestion: with_my_thread_gc_registered(). I don't know how universal this is, but I have a strong association of "with" with the idea of making something true, running a function, and then restoring the original state.
This function name doesn't suggest to me what it does (call a function you pass in)
My suggestion:
with_my_thread_gc_registered()
. I don't know how universal this is, but I have a strong association of "with" with the idea of making something true, running a function, and then restoring the original state.