diff options
author | Andy Wingo <wingo@pobox.com> | 2011-11-07 23:53:06 +0100 |
---|---|---|
committer | Andy Wingo <wingo@pobox.com> | 2011-11-08 00:54:58 +0100 |
commit | be632904cafd0c5baf38b2ef970acc2c72af6cd3 (patch) | |
tree | e3bde19c1963a480bd33487c76c624f684953c9e /libguile/ports.h | |
parent | 0d959103f985bbb60959c7ef4738235527792e47 (diff) | |
download | guile-be632904cafd0c5baf38b2ef970acc2c72af6cd3.tar.gz |
locking on scm_c_read, scm_getc
* libguile/ports.c (scm_c_read_unlocked, scm_c_read, scm_getc_unlocked)
(scm_getc): Split getc and read operations into locked and unlocked
variants. Change most uses to use the _unlocked version.
Diffstat (limited to 'libguile/ports.h')
-rw-r--r-- | libguile/ports.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/libguile/ports.h b/libguile/ports.h index 2bb2ac46f..1abf30ff4 100644 --- a/libguile/ports.h +++ b/libguile/ports.h @@ -310,7 +310,9 @@ SCM_API int scm_peek_byte_or_eof (SCM port); SCM_INLINE int scm_get_byte_or_eof_unlocked (SCM port); SCM_INLINE int scm_peek_byte_or_eof_unlocked (SCM port); SCM_API size_t scm_c_read (SCM port, void *buffer, size_t size); +SCM_API size_t scm_c_read_unlocked (SCM port, void *buffer, size_t size); SCM_API scm_t_wchar scm_getc (SCM port); +SCM_API scm_t_wchar scm_getc_unlocked (SCM port); SCM_API SCM scm_read_char (SCM port); /* Pushback. */ |