* libio/genops.c (_IO_list_lock): Only compile body if we're

thread safe. 
(_IO_list_unlock): Likewise. 
(_IO_list_resetlock): Likewise.
This commit is contained in:
Andreas Jaeger 2000-06-08 09:01:34 +00:00
parent 1b579f9167
commit 92cfdd8a9e

View File

@ -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
}