* libguile/read.c (read_token): Don't take the string-write mutex when
reading a token into a buffer, because it's assumed that the buffer is
fresh (not seen by other threads), and a soft port can call a
procedure that needs the string-write mutex.
scm_t_wchar chr;
*read = 0;
- buf = scm_i_string_start_writing (buf);
while (*read < scm_i_string_length (buf))
{
chr = scm_getc (port);
scm_i_string_set_x (buf, *read, chr);
(*read)++;
}
- scm_i_string_stop_writing ();
return 1;
}