Fix threaded function declaration.