From: Giuseppe Scrivano Date: Mon, 11 Jan 2010 09:20:02 +0000 (+0100) Subject: Use get_current_thread to retrieve the current thread object. X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=6d4bf33c32e56b8355a74822629bf31be5b14656;p=emacs.git Use get_current_thread to retrieve the current thread object. --- diff --git a/src/thread.c b/src/thread.c index 6381640dec4..f19cb4fc43d 100644 --- a/src/thread.c +++ b/src/thread.c @@ -238,7 +238,7 @@ run_thread (void *state) /* It might be nice to do something with errors here. */ internal_condition_case (invoke_thread_function, Qt, do_nothing); - blocal_unbind_thread (current_thread); + blocal_unbind_thread (get_current_thread ()); /* Unlink this thread from the list of all threads. */ for (iter = &all_threads; *iter != self; iter = &(*iter)->next_thread)