From 1561bf636d195795688e81b19fd42cdc2f5e6975 Mon Sep 17 00:00:00 2001 From: Ulrich Drepper Date: Fri, 20 Dec 2002 09:33:33 +0000 Subject: Update. * include/libio.h [_IO_MTSAFE_IO && _IO_lock_inexpensive]: Redefine _IO_flockifle and _IO_funlockfile as inlines. --- nptl/ChangeLog | 4 ++++ nptl/sysdeps/pthread/bits/stdio-lock.h | 3 +++ 2 files changed, 7 insertions(+) (limited to 'nptl') diff --git a/nptl/ChangeLog b/nptl/ChangeLog index ed7de44425..1cb4c372c2 100644 --- a/nptl/ChangeLog +++ b/nptl/ChangeLog @@ -1,3 +1,7 @@ +2002-12-20 Ulrich Drepper + + * sysdeps/pthread/bits/stdio-lock.h (_IO_lock_inexpensive): Define. + 2002-12-19 Ulrich Drepper * sysdeps/unix/sysv/linux/i386/dl-sysdep.h: Don't define diff --git a/nptl/sysdeps/pthread/bits/stdio-lock.h b/nptl/sysdeps/pthread/bits/stdio-lock.h index ea622e4142..fbb14a1120 100644 --- a/nptl/sysdeps/pthread/bits/stdio-lock.h +++ b/nptl/sysdeps/pthread/bits/stdio-lock.h @@ -24,6 +24,9 @@ #include +/* The locking here is very inexpensive, even for inlining. */ +#define _IO_lock_inexpensive 1 + typedef struct { int lock; int cnt; void *owner; } _IO_lock_t; #define _IO_lock_initializer { LLL_MUTEX_LOCK_INITIALIZER, 0, NULL } -- cgit 1.4.1