1
0
mirror of https://sourceware.org/git/glibc.git synced 2025-07-29 11:41:21 +03:00

hurd: Remove some remnants of cthreads

Libc has actually been using mach's lock-internal.h mutex for a long
time already.
This commit is contained in:
Samuel Thibault
2020-11-14 23:35:35 +00:00
parent 7ed2b6921f
commit 9446e02b0d
27 changed files with 76 additions and 79 deletions

View File

@ -95,6 +95,15 @@ __spin_lock_locked (__spin_lock_t *__lock)
#endif
/* Name space-clean internal interface to mutex locks. */
struct mutex {
__spin_lock_t __held;
__spin_lock_t __lock;
const char *__name;
void *__head, *__tail;
void *__holder;
};
#define MUTEX_INITIALIZER { __SPIN_LOCK_INITIALIZER }
/* Initialize the newly allocated mutex lock LOCK for further use. */
extern void __mutex_init (void *__lock);