Use the right declaration for threaded functions.