Get rid of warnings from the cooperative threading system.
authorJim Blandy <jimb@red-bean.com>
Sat, 3 Oct 1998 13:33:53 +0000 (13:33 +0000)
committerJim Blandy <jimb@red-bean.com>
Sat, 3 Oct 1998 13:33:53 +0000 (13:33 +0000)
commit6d71500e94d02e9e688db1c7a200c4281c8d1100
tree9387c78e027954b09842d3e962c5a13a1ddf7fc9
parent7f0f3eaa5f0b5a4c532116b1da104f116089f475
Get rid of warnings from the cooperative threading system.
* threads.h (scm_single_thread_p, scm_yield,
scm_call_with_new_thread, scm_join_thread, scm_make_mutex,
scm_lock_mutex, scm_unlock_mutex, scm_make_condition_variable,
scm_wait_condition_variable, scm_signal_condition_variable): Add
prototypes for these Scheme-visible functions.
* coop-defs.h (coop_next_runnable_thread,
coop_wait_for_runnable_thread_now, coop_wait_for_runnable_thread):
Prototypes for these here, even though they're from iselect.c.
(coop_condition_variable_wait, coop_join): Add prototypes.
* coop-threads.c (scm_threads_free_thread, scm_threads_free_mutex,
scm_threads_free_condvar): Make these smob functions static.
* coop-threads.h (coop_init): Give this a real prototype.
* coop.c: #include <unistd.h>, if we have it, for `usleep' and `sleep'.
(coop_next_runnable_thread): No need to provide prototype; it's in
coop-defs.h.
libguile/coop-defs.h
libguile/coop-threads.c
libguile/coop-threads.h
libguile/coop.c
libguile/threads.h