get called when the current thread exits.
.Pp
When
.Fn pthread_cleanup_push
.Fn cleanup_routine
is called, it is passed
.Fa arg
as its only argument.