]> git.eshelyaron.com Git - emacs.git/commitdiff
Set the buffer after the lock is acquired.
authorGiuseppe Scrivano <gscrivano@gnu.org>
Wed, 11 Nov 2009 10:00:09 +0000 (11:00 +0100)
committerGiuseppe Scrivano <gscrivano@gnu.org>
Wed, 11 Nov 2009 10:00:09 +0000 (11:00 +0100)
src/thread.c

index b142c8e679f466c442d1fcc820da01b8a10c0b25..5c5e0f22ca3f203445a68df7fe4b4830bcbd2a1e 100644 (file)
@@ -229,7 +229,7 @@ run_thread (void *state)
      typically wait for the parent thread to release it first.  */
   XSETBUFFER (buffer, self->m_current_buffer);
   GCPRO1 (buffer);
-  self->m_current_buffer = (struct buffer *) buffer;
+  self->m_current_buffer = 0;
 
   pthread_mutex_lock (&global_lock);