diff options
author | Andy Wingo <wingo@pobox.com> | 2016-10-27 21:22:28 +0200 |
---|---|---|
committer | Andy Wingo <wingo@pobox.com> | 2016-10-27 21:22:28 +0200 |
commit | a04739b31a561879368c61f7599844fc9a85a7a6 (patch) | |
tree | 0f168ee23d9f12b1e7200c065f20a74531f93dcb /NEWS | |
parent | c957ec7ab0f0a028910dc737e12191f7bdc1ca93 (diff) |
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 'NEWS')
-rw-r--r-- | NEWS | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -38,6 +38,9 @@ trivial unused data structure. Now that we have deprecated the old only refer to "asyncs". * Bug fixes +** cancel-thread uses asynchronous interrupts, not pthread_cancel + +See "Asyncs" in the manual, for more on asynchronous interrupts. Previous changes in 2.1.x (changes since the 2.0.x series): |