# Mutex::new(Globals::new) creates a mutex around a function pointer, which is probably not what you want