summaryrefslogtreecommitdiff
path: root/src/thread.c
diff options
context:
space:
mode:
authorEli Zaretskii <eliz@gnu.org>2016-12-10 11:42:48 +0200
committerEli Zaretskii <eliz@gnu.org>2016-12-10 11:42:48 +0200
commit828b4560cd4a0d8cb9b7a7a3e20ff0c53ba86cfa (patch)
tree8cb0731a18edc5a9499fc61f6855378a277e4fd1 /src/thread.c
parentc364d62f89a499d22f06f63e81ec7819f51596fa (diff)
downloademacs-828b4560cd4a0d8cb9b7a7a3e20ff0c53ba86cfa.tar.gz
Fix error messages in thread.c
* src/thread.c (lisp_mutex_unlock, Fcondition_wait) (Fcondition_notify, Fthread_join): Fix error messages.
Diffstat (limited to 'src/thread.c')
-rw-r--r--src/thread.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/thread.c b/src/thread.c
index ee5b82da905..ae2ce3dc02b 100644
--- a/src/thread.c
+++ b/src/thread.c
@@ -144,7 +144,7 @@ static int
lisp_mutex_unlock (lisp_mutex_t *mutex)
{
if (mutex->owner != current_thread)
- error ("blah");
+ error ("Cannot unlock mutex owned by another thread");
if (--mutex->count > 0)
return 0;
@@ -375,7 +375,7 @@ this thread. */)
mutex = XMUTEX (cvar->mutex);
if (!lisp_mutex_owned_p (&mutex->mutex))
- error ("fixme");
+ error ("Condition variable's mutex is not held by current thread");
flush_stack_call_func (condition_wait_callback, cvar);
@@ -430,7 +430,7 @@ thread. */)
mutex = XMUTEX (cvar->mutex);
if (!lisp_mutex_owned_p (&mutex->mutex))
- error ("fixme");
+ error ("Condition variable's mutex is not held by current thread");
args.cvar = cvar;
args.all = !NILP (all);
@@ -855,7 +855,7 @@ It is an error for a thread to try to join itself. */)
tstate = XTHREAD (thread);
if (tstate == current_thread)
- error ("cannot join current thread");
+ error ("Cannot join current thread");
if (thread_alive_p (tstate))
flush_stack_call_func (thread_join_callback, tstate);