hurd: Allow inlining IO locks
authorSamuel Thibault <samuel.thibault@ens-lyon.org>
Sun, 20 Mar 2016 21:12:06 +0000 (22:12 +0100)
committerSamuel Thibault <samuel.thibault@ens-lyon.org>
Sun, 20 Mar 2016 21:12:06 +0000 (22:12 +0100)
* sysdeps/mach/hurd/libc-lock.h (_IO_lock_inexpensive): Define to 1.

ChangeLog
sysdeps/mach/hurd/libc-lock.h

index db408c7..4b8890e 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,9 @@
 2016-03-20  Samuel Thibault  <samuel.thibault@ens-lyon.org>:
 
+       * sysdeps/mach/hurd/libc-lock.h (_IO_lock_inexpensive): Define to 1.
+
+2016-03-20  Samuel Thibault  <samuel.thibault@ens-lyon.org>:
+
        * sysdeps/generic/dl-fcntl.h: New file, adds attribute_hidden to __open
        and __fcntl.
        * sysdeps/mach/hurd/dl-fcntl.h: New file, adds attribute_hidden to
index f6cbe50..dfcbee1 100644 (file)
@@ -23,6 +23,9 @@
 #include <cthreads.h>
 #include <hurd/threadvar.h>
 
+/* The locking here is very inexpensive, even for inlining.  */
+#define _IO_lock_inexpensive  1
+
 typedef struct mutex __libc_lock_t;
 typedef struct
 {