diff options
author | Tom Tromey <tromey@redhat.com> | 2012-08-18 19:59:47 -0600 |
---|---|---|
committer | Tom Tromey <tromey@redhat.com> | 2012-08-18 19:59:47 -0600 |
commit | b3c78ffa31af4fb96cc18da887e2f2a1e68f5e09 (patch) | |
tree | 18d4319fc883400ed308786357d5628e9e67d384 /src/systhread.h | |
parent | f52cfea0dcea4ae9599d4a775901ca06a0517f56 (diff) | |
download | emacs-b3c78ffa31af4fb96cc18da887e2f2a1e68f5e09.tar.gz emacs-b3c78ffa31af4fb96cc18da887e2f2a1e68f5e09.tar.bz2 emacs-b3c78ffa31af4fb96cc18da887e2f2a1e68f5e09.zip |
refactor systhread.h
This refactors systhread.h to move the notion of a "lisp mutex"
into thread.c. This lets us make make the global lock and
post_acquire_global_lock static.
Diffstat (limited to 'src/systhread.h')
-rw-r--r-- | src/systhread.h | 18 |
1 files changed, 0 insertions, 18 deletions
diff --git a/src/systhread.h b/src/systhread.h index bf9358c21c6..790b385b7ff 100644 --- a/src/systhread.h +++ b/src/systhread.h @@ -23,19 +23,6 @@ along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */ #include <pthread.h> -/* A mutex in lisp is represented by a pthread condition variable. - The pthread mutex associated with this condition variable is the - global lock. - - Using a condition variable lets us implement interruptibility for - lisp mutexes. */ -typedef struct -{ - struct thread_state *owner; - unsigned int count; - pthread_cond_t condition; -} lisp_mutex_t; - /* A system mutex is just a pthread mutex. This is only used for the GIL. */ typedef pthread_mutex_t sys_mutex_t; @@ -64,11 +51,6 @@ extern void sys_cond_signal (sys_cond_t *); extern void sys_cond_broadcast (sys_cond_t *); extern void sys_cond_destroy (sys_cond_t *); -extern void lisp_mutex_init (lisp_mutex_t *); -extern void lisp_mutex_lock (lisp_mutex_t *); -extern void lisp_mutex_unlock (lisp_mutex_t *); -extern void lisp_mutex_destroy (lisp_mutex_t *); - extern sys_thread_t sys_thread_self (void); extern int sys_thread_equal (sys_thread_t, sys_thread_t); |