mirror of
https://git.savannah.gnu.org/git/guile.git
synced 2025-06-17 01:00:20 +02:00
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.
This commit is contained in:
parent
4251ae2e28
commit
0607ebbfcf
44 changed files with 233 additions and 215 deletions
|
@ -367,11 +367,11 @@ thread_print (SCM exp, SCM port, scm_print_state *pstate SCM_UNUSED)
|
|||
else
|
||||
id = u.um;
|
||||
|
||||
scm_puts ("#<thread ", port);
|
||||
scm_puts_unlocked ("#<thread ", port);
|
||||
scm_uintprint (id, 10, port);
|
||||
scm_puts (" (", port);
|
||||
scm_puts_unlocked (" (", port);
|
||||
scm_uintprint ((scm_t_bits)t, 16, port);
|
||||
scm_puts (")>", port);
|
||||
scm_puts_unlocked (")>", port);
|
||||
return 1;
|
||||
}
|
||||
|
||||
|
@ -1270,9 +1270,9 @@ static int
|
|||
fat_mutex_print (SCM mx, SCM port, scm_print_state *pstate SCM_UNUSED)
|
||||
{
|
||||
fat_mutex *m = SCM_MUTEX_DATA (mx);
|
||||
scm_puts ("#<mutex ", port);
|
||||
scm_puts_unlocked ("#<mutex ", port);
|
||||
scm_uintprint ((scm_t_bits)m, 16, port);
|
||||
scm_puts (">", port);
|
||||
scm_puts_unlocked (">", port);
|
||||
return 1;
|
||||
}
|
||||
|
||||
|
@ -1727,9 +1727,9 @@ static int
|
|||
fat_cond_print (SCM cv, SCM port, scm_print_state *pstate SCM_UNUSED)
|
||||
{
|
||||
fat_cond *c = SCM_CONDVAR_DATA (cv);
|
||||
scm_puts ("#<condition-variable ", port);
|
||||
scm_puts_unlocked ("#<condition-variable ", port);
|
||||
scm_uintprint ((scm_t_bits)c, 16, port);
|
||||
scm_puts (">", port);
|
||||
scm_puts_unlocked (">", port);
|
||||
return 1;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue