]> git.eshelyaron.com Git - emacs.git/commitdiff
Rename buffer_cond to thread_cond.
authorGiuseppe Scrivano <gscrivano@gnu.org>
Wed, 11 Nov 2009 09:36:26 +0000 (10:36 +0100)
committerGiuseppe Scrivano <gscrivano@gnu.org>
Wed, 11 Nov 2009 09:36:26 +0000 (10:36 +0100)
src/thread.c

index 07840c43d605c4230263ce1e7549bfa2890ca8eb..ca8317822ab84acec73b9866df1af0e5da1e6c3b 100644 (file)
@@ -18,7 +18,7 @@ void flush_stack_call_func P_ ((void (*) (char *, void *), void *));
 
 /* condition var .. w/ global lock */
 
-static pthread_cond_t buffer_cond;
+static pthread_cond_t thread_cond;
 
 static struct thread_state primary_thread;
 
@@ -50,7 +50,7 @@ reschedule (char *end, int wait)
     thread_schedule ();
 
   if (next_thread != current_thread->pthread_id)
-    pthread_cond_broadcast (&buffer_cond);
+    pthread_cond_broadcast (&thread_cond);
 
   if (!wait)
     return;
@@ -60,7 +60,7 @@ reschedule (char *end, int wait)
   pthread_mutex_lock (&global_lock);
 
   while (current_thread->pthread_id != next_thread)
-    pthread_cond_wait (&buffer_cond, &global_lock);
+    pthread_cond_wait (&thread_cond, &global_lock);
 }
 
 static void
@@ -245,7 +245,7 @@ run_thread (void *state)
   *iter = (*iter)->next_thread;
 
   thread_schedule ();
-  pthread_cond_broadcast (&buffer_cond);
+  pthread_cond_broadcast (&thread_cond);
 
   xfree (self->m_specpdl);
 
@@ -375,10 +375,10 @@ thread_select (n, rfd, wfd, xfd, tmo)
   current_thread->blocked = 0;
 
   pthread_mutex_lock (&global_lock);
-  pthread_cond_broadcast (&buffer_cond);
+  pthread_cond_broadcast (&thread_cond);
 
   while (current_thread->pthread_id != next_thread)
-    pthread_cond_wait (&buffer_cond, &global_lock);
+    pthread_cond_wait (&thread_cond, &global_lock);
 
   return ret;
 }
@@ -440,7 +440,7 @@ void
 init_threads (void)
 {
   pthread_mutex_init (&global_lock, NULL);
-  pthread_cond_init (&buffer_cond, NULL);
+  pthread_cond_init (&thread_cond, NULL);
   pthread_mutex_lock (&global_lock);
 
   primary_thread.pthread_id = pthread_self ();