summaryrefslogtreecommitdiff
path: root/src/thread.c
diff options
context:
space:
mode:
authorTom Tromey <tromey@redhat.com>2012-08-19 03:25:06 -0600
committerTom Tromey <tromey@redhat.com>2012-08-19 03:25:06 -0600
commit977c4aa65f42a1cf2c07ea92a6190c18c349b2e7 (patch)
tree6cfd7c2e734709490de8dc9d9bbf78c6f4f35235 /src/thread.c
parent5651640d578fa2efa40be4789d9fa61813ccb1fa (diff)
downloademacs-977c4aa65f42a1cf2c07ea92a6190c18c349b2e7.tar.gz
use NILP
Diffstat (limited to 'src/thread.c')
-rw-r--r--src/thread.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/thread.c b/src/thread.c
index 4657d6a797e..83f25e8d462 100644
--- a/src/thread.c
+++ b/src/thread.c
@@ -61,7 +61,7 @@ post_acquire_global_lock (struct thread_state *self)
self->m_current_buffer = 0;
set_buffer_internal (XBUFFER (buffer));
- if (!EQ (current_thread->error_symbol, Qnil))
+ if (!NILP (current_thread->error_symbol))
{
Lisp_Object sym = current_thread->error_symbol;
Lisp_Object data = current_thread->error_data;
@@ -110,7 +110,7 @@ lisp_mutex_lock (lisp_mutex_t *mutex, int new_count)
self = current_thread;
self->wait_condvar = &mutex->condition;
while (mutex->owner != NULL && (new_count != 0
- || EQ (self->error_symbol, Qnil)))
+ || NILP (self->error_symbol)))
sys_cond_wait (&mutex->condition, &global_lock);
self->wait_condvar = NULL;
@@ -796,7 +796,7 @@ thread_join_callback (void *arg)
XSETTHREAD (thread, tstate);
self->event_object = thread;
self->wait_condvar = &tstate->thread_condvar;
- while (tstate->m_specpdl != NULL && EQ (self->error_symbol, Qnil))
+ while (tstate->m_specpdl != NULL && NILP (self->error_symbol))
sys_cond_wait (self->wait_condvar, &global_lock);
self->wait_condvar = NULL;