mirror of
https://sourceware.org/git/glibc.git
synced 2025-07-29 11:41:21 +03:00
* old_pthread_cond_init.c: Include <errno.h>.
(__pthread_cond_init_2_0): Fail with EINVAL if COND_ATTR is process shared or uses clock other than CLOCK_REALTIME. * pthread_cond_init.c (__pthread_cond_init): Remove bogus comment.
This commit is contained in:
@ -1,4 +1,4 @@
|
||||
/* Copyright (C) 2002, 2003, 2004 Free Software Foundation, Inc.
|
||||
/* Copyright (C) 2002, 2003, 2004, 2005 Free Software Foundation, Inc.
|
||||
This file is part of the GNU C Library.
|
||||
Contributed by Ulrich Drepper <drepper@redhat.com>, 2002.
|
||||
|
||||
@ -26,8 +26,6 @@ __pthread_cond_init (cond, cond_attr)
|
||||
pthread_cond_t *cond;
|
||||
const pthread_condattr_t *cond_attr;
|
||||
{
|
||||
/* Note that we don't need the PSHARED information from COND-ATTR.
|
||||
Conditional variables are always usable in multiple processes. */
|
||||
struct pthread_condattr *icond_attr = (struct pthread_condattr *) cond_attr;
|
||||
|
||||
cond->__data.__lock = LLL_MUTEX_LOCK_INITIALIZER;
|
||||
|
Reference in New Issue
Block a user