]> git.eshelyaron.com Git - emacs.git/commitdiff
Use get_current_thread to retrieve the current thread object.
authorGiuseppe Scrivano <gscrivano@gnu.org>
Mon, 11 Jan 2010 09:20:02 +0000 (10:20 +0100)
committerGiuseppe Scrivano <gscrivano@gnu.org>
Mon, 11 Jan 2010 09:20:02 +0000 (10:20 +0100)
src/thread.c

index 6381640dec48b63a088cb06b836fd957693a5062..f19cb4fc43d6bafbcf137e8430c5bb1dd6842a93 100644 (file)
@@ -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)