aboutsummaryrefslogtreecommitdiff
path: root/libio/genops.c
diff options
context:
space:
mode:
authorAndreas Jaeger <aj@suse.de>2000-06-08 09:01:34 +0000
committerAndreas Jaeger <aj@suse.de>2000-06-08 09:01:34 +0000
commit92cfdd8a9eeac6d3d7131044cfc9937750a7e5fd (patch)
treea1b583d4799d035879aef935ab2dee1b260a9819 /libio/genops.c
parent1b579f91677bbbce21ed8d20801eb6ac041983d8 (diff)
downloadglibc-92cfdd8a9eeac6d3d7131044cfc9937750a7e5fd.tar
glibc-92cfdd8a9eeac6d3d7131044cfc9937750a7e5fd.tar.gz
glibc-92cfdd8a9eeac6d3d7131044cfc9937750a7e5fd.tar.bz2
glibc-92cfdd8a9eeac6d3d7131044cfc9937750a7e5fd.zip
* libio/genops.c (_IO_list_lock): Only compile body if we're
thread safe. (_IO_list_unlock): Likewise. (_IO_list_resetlock): Likewise.
Diffstat (limited to 'libio/genops.c')
-rw-r--r--libio/genops.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/libio/genops.c b/libio/genops.c
index fb4f08bd3f..bdbde0ce4b 100644
--- a/libio/genops.c
+++ b/libio/genops.c
@@ -1057,19 +1057,25 @@ _IO_iter_file(iter)
void
_IO_list_lock()
{
+#ifdef _IO_MTSAFE_IO
_IO_lock_lock (list_all_lock);
+#endif
}
void
_IO_list_unlock()
{
- _IO_lock_unlock (list_all_lock);
+#ifdef _IO_MTSAFE_IO
+ _IO_lock_unlock (list_all_lock);
+#endif
}
void
_IO_list_resetlock()
{
+#ifdef _IO_MTSAFE_IO
_IO_lock_init (list_all_lock);
+#endif
}