change thread function type from void (void *) to void ()