diff options
author | Andy Wingo <wingo@pobox.com> | 2011-11-08 00:36:48 +0100 |
---|---|---|
committer | Andy Wingo <wingo@pobox.com> | 2011-11-08 00:55:05 +0100 |
commit | 0607ebbfcf63dc81e4bc2b10f3a8c3bc0d348c09 (patch) | |
tree | 8d7b9e0b211acf00ebcd43e57b7a860fa966ea07 /libguile/vm.c | |
parent | 4251ae2e282385be6d08b0fffab761fcc0fa93aa (diff) | |
download | guile-0607ebbfcf63dc81e4bc2b10f3a8c3bc0d348c09.tar.gz |
locking for putc, puts
* libguile/ports.c (scm_putc, scm_puts):
* libguile/ports.h (scm_putc_unlocked, scm_puts_unlocked): Separate into
_unlocked and locked variants. Change all callers to use the
_unlocked versions.
Diffstat (limited to 'libguile/vm.c')
-rw-r--r-- | libguile/vm.c | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/libguile/vm.c b/libguile/vm.c index 9958e11d7..9b8e93a12 100644 --- a/libguile/vm.c +++ b/libguile/vm.c @@ -83,9 +83,9 @@ static SCM sym_debug; void scm_i_vm_cont_print (SCM x, SCM port, scm_print_state *pstate) { - scm_puts ("#<vm-continuation ", port); + scm_puts_unlocked ("#<vm-continuation ", port); scm_uintprint (SCM_UNPACK (x), 16, port); - scm_puts (">", port); + scm_puts_unlocked (">", port); } /* In theory, a number of vm instances can be active in the call trace, and we @@ -351,22 +351,22 @@ scm_i_vm_print (SCM x, SCM port, scm_print_state *pstate) vm = SCM_VM_DATA (x); - scm_puts ("#<vm ", port); + scm_puts_unlocked ("#<vm ", port); switch (vm->engine) { case SCM_VM_REGULAR_ENGINE: - scm_puts ("regular-engine ", port); + scm_puts_unlocked ("regular-engine ", port); break; case SCM_VM_DEBUG_ENGINE: - scm_puts ("debug-engine ", port); + scm_puts_unlocked ("debug-engine ", port); break; default: - scm_puts ("unknown-engine ", port); + scm_puts_unlocked ("unknown-engine ", port); } scm_uintprint (SCM_UNPACK (x), 16, port); - scm_puts (">", port); + scm_puts_unlocked (">", port); } static SCM |