Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
hurd: Allow inlining IO locks
	* sysdeps/mach/hurd/libc-lock.h (_IO_lock_inexpensive): Define to 1.
  • Loading branch information
Samuel Thibault committed Mar 20, 2016
1 parent d2129ad commit 4d10ceb
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
4 changes: 4 additions & 0 deletions ChangeLog
@@ -1,3 +1,7 @@
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
Expand Down
3 changes: 3 additions & 0 deletions sysdeps/mach/hurd/libc-lock.h
Expand Up @@ -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
{
Expand Down

0 comments on commit 4d10ceb

Please sign in to comment.