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:
@ -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);
|
||||
|
Reference in New Issue
Block a user