summaryrefslogtreecommitdiff
path: root/module/srfi/srfi-18.scm
diff options
context:
space:
mode:
authorAndy Wingo <wingo@pobox.com>2016-10-27 21:22:28 +0200
committerAndy Wingo <wingo@pobox.com>2016-10-27 21:22:28 +0200
commita04739b31a561879368c61f7599844fc9a85a7a6 (patch)
tree0f168ee23d9f12b1e7200c065f20a74531f93dcb /module/srfi/srfi-18.scm
parentc957ec7ab0f0a028910dc737e12191f7bdc1ca93 (diff)
downloadguile-a04739b31a561879368c61f7599844fc9a85a7a6.tar.gz
cancel-thread via asyncs, not pthread_cancel
* module/ice-9/threads.scm (cancel-tag): New variable. (cancel-thread): New Scheme function. (call-with-new-thread): Install a prompt around the thread. * libguile/threads.h (scm_i_thread): Remove cancelled member. * libguile/threads.c (scm_cancel_thread): Call out to Scheme. Always available, and works on the current thread too. (scm_set_thread_cleanup_x, scm_thread_cleanup): Adapt. (scm_init_ice_9_threads): Capture cancel-thread var. * doc/ref/api-scheduling.texi (Threads): Update. * NEWS: Update.
Diffstat (limited to 'module/srfi/srfi-18.scm')
0 files changed, 0 insertions, 0 deletions