Deprecate dynamic roots

* libguile/root.h:
* libguile/root.c: Remove these files.
* libguile/deprecated.h:
* libguile/deprecated.c (scm_internal_cwdr, scm_call_with_dynamic_root)
  (scm_dynamic_root, scm_apply_with_dynamic_root): Deprecate.

Remove all root.h usage, which was vestigial.

* module/ice-9/serialize.scm: Use (current-thread) instead
  of (dynamic-root).
This commit is contained in:
Andy Wingo 2016-11-21 23:06:14 +01:00
commit dc2a560264
47 changed files with 179 additions and 297 deletions

6
NEWS
View file

@ -109,6 +109,12 @@ scm_dynwind_block_asyncs.
Use `scm_make_mutex_with_kind' instead. See "Mutexes and Condition
Variables" in the manual, for more.
** Dynamic roots deprecated
This was a facility that predated threads, was unused as far as we can
tell, and was never documented. Still, a grep of your code for
dynamic-root or dynamic_root would not be amiss.
* Bug fixes
** cancel-thread uses asynchronous interrupts, not pthread_cancel