Remove code intended to put threads to sleep.
authorLudovic Courtès <ludo@gnu.org>
Wed, 17 Sep 2008 20:58:32 +0000 (22:58 +0200)
committerLudovic Courtès <ludo@gnu.org>
Wed, 17 Sep 2008 20:58:32 +0000 (22:58 +0200)
commit43adae308c3827d93ad2b79d073288887a99c47d
treef6c2b87fa1299c6b20b67faf41a1c1bdae38f0d4
parent902578f15aaef0ae1eefdde4c822d163fffb58f0
Remove code intended to put threads to sleep.

Actually, threads would "go to sleep" either by blocking on a heap
allocation, or by noticing `scm_i_thread_go_to_sleep' is set when
running `SCM_TICK', which limits the applicability of this technique
(e.g., it was not appropriate for the shared string code).

* libguile/threads.c (scm_i_thread_go_to_sleep, scm_i_thread_put_to_sleep,
  scm_i_thread_invalidate_freelists, scm_i_thread_wake_up,
  scm_i_thread_sleep_for_gc): Remove.

* libguile/threads.h (scm_i_thread_go_to_sleep, scm_i_thread_put_to_sleep,
  scm_i_thread_invalidate_freelists, scm_i_thread_wake_up,
  scm_i_thread_sleep_for_gc): Remove declarations.
  (SCM_THREAD_SWITCHING_CODE): Do nothing.
libguile/threads.c
libguile/threads.h