diff options
author | Andy Wingo <wingo@pobox.com> | 2016-11-13 15:08:45 +0100 |
---|---|---|
committer | Andy Wingo <wingo@pobox.com> | 2016-11-13 15:56:21 +0100 |
commit | 6bb51193df3620d962df87caf8cfbf6a4256a540 (patch) | |
tree | 12e1a47062da6c71670d995de1530541fe3a7d64 /libguile/async.h | |
parent | 1ed9dea34aa8cb0cbae17200c31d1ac91a6a01de (diff) | |
download | guile-6bb51193df3620d962df87caf8cfbf6a4256a540.tar.gz |
Refactor GC implications of thread sleep
* libguile/async.c (struct scm_thread_wake_data): Move definition here.
(scm_i_setup_sleep): Remove "sleep_object". Caller now responsible
for scm_remember_upto_here_1 as appropriate.
(scm_system_async_mark_for_thread): Remove scm_remember_upto_here_1
call.
* libguile/async.h (scm_i_setup_sleep): Adapt prototype.
* libguile/threads.h (struct scm_thread_wake_data): Remove definition.
* libguile/threads.c (block_self): Remove sleep_object argument.
(scm_join_thread_timed, scm_timed_lock_mutex)
(scm_timed_wait_condition_variable, scm_std_select): Adapt.
Diffstat (limited to 'libguile/async.h')
-rw-r--r-- | libguile/async.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libguile/async.h b/libguile/async.h index 2a57236ca..343cc2ae6 100644 --- a/libguile/async.h +++ b/libguile/async.h @@ -35,7 +35,7 @@ SCM_API void scm_switch (void); SCM_API SCM scm_system_async_mark (SCM a); SCM_API SCM scm_system_async_mark_for_thread (SCM a, SCM thread); SCM_INTERNAL int scm_i_setup_sleep (scm_i_thread *, - SCM obj, scm_i_pthread_mutex_t *m, + scm_i_pthread_mutex_t *m, int fd); SCM_INTERNAL void scm_i_reset_sleep (scm_i_thread *); SCM_API SCM scm_noop (SCM args); |