diff options
| author | Eli Zaretskii | 2016-12-05 22:50:44 +0200 |
|---|---|---|
| committer | Eli Zaretskii | 2016-12-05 22:50:44 +0200 |
| commit | 66a5abb102ec1d6e4c327632ef235d1eb6433291 (patch) | |
| tree | 9e894dfb5dcf42869bff94987d7ab5628ea71358 /src/thread.c | |
| parent | e4deba098e0281538a0e7b04d849989f17e5bcc7 (diff) | |
| download | emacs-66a5abb102ec1d6e4c327632ef235d1eb6433291.tar.gz emacs-66a5abb102ec1d6e4c327632ef235d1eb6433291.zip | |
Fix compilation problems.
Diffstat (limited to 'src/thread.c')
| -rw-r--r-- | src/thread.c | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/src/thread.c b/src/thread.c index f5b04e4b231..11d55a5caef 100644 --- a/src/thread.c +++ b/src/thread.c | |||
| @@ -143,8 +143,6 @@ lisp_mutex_lock (lisp_mutex_t *mutex, int new_count) | |||
| 143 | static int | 143 | static int |
| 144 | lisp_mutex_unlock (lisp_mutex_t *mutex) | 144 | lisp_mutex_unlock (lisp_mutex_t *mutex) |
| 145 | { | 145 | { |
| 146 | struct thread_state *self = current_thread; | ||
| 147 | |||
| 148 | if (mutex->owner != current_thread) | 146 | if (mutex->owner != current_thread) |
| 149 | error ("blah"); | 147 | error ("blah"); |
| 150 | 148 | ||
| @@ -160,7 +158,6 @@ lisp_mutex_unlock (lisp_mutex_t *mutex) | |||
| 160 | static unsigned int | 158 | static unsigned int |
| 161 | lisp_mutex_unlock_for_wait (lisp_mutex_t *mutex) | 159 | lisp_mutex_unlock_for_wait (lisp_mutex_t *mutex) |
| 162 | { | 160 | { |
| 163 | struct thread_state *self = current_thread; | ||
| 164 | unsigned int result = mutex->count; | 161 | unsigned int result = mutex->count; |
| 165 | 162 | ||
| 166 | /* Ensured by condvar code. */ | 163 | /* Ensured by condvar code. */ |
| @@ -601,9 +598,6 @@ DEFUN ("thread-yield", Fthread_yield, Sthread_yield, 0, 0, 0, | |||
| 601 | static Lisp_Object | 598 | static Lisp_Object |
| 602 | invoke_thread_function (void) | 599 | invoke_thread_function (void) |
| 603 | { | 600 | { |
| 604 | Lisp_Object iter; | ||
| 605 | volatile struct thread_state *self = current_thread; | ||
| 606 | |||
| 607 | int count = SPECPDL_INDEX (); | 601 | int count = SPECPDL_INDEX (); |
| 608 | 602 | ||
| 609 | Ffuncall (1, ¤t_thread->function); | 603 | Ffuncall (1, ¤t_thread->function); |