mirror of
git://sourceware.org/git/glibc.git
synced 2025-01-18 12:16:13 +08:00
support: Add xpthread_cond_signal wrapper
Signed-off-by: Yu Chien Peter Lin <peterlin@andestech.com>
Reviewed-by: Adhemerval Zanella <adhemerval.zanella@linaro.org>
(cherry picked from commit 3bea50ccbc
)
This commit is contained in:
parent
53b3a3a26f
commit
1164f18399
@ -161,6 +161,7 @@ libsupport-routines = \
|
|||||||
xpthread_cancel \
|
xpthread_cancel \
|
||||||
xpthread_check_return \
|
xpthread_check_return \
|
||||||
xpthread_cond_wait \
|
xpthread_cond_wait \
|
||||||
|
xpthread_cond_signal \
|
||||||
xpthread_create \
|
xpthread_create \
|
||||||
xpthread_detach \
|
xpthread_detach \
|
||||||
xpthread_join \
|
xpthread_join \
|
||||||
|
26
support/xpthread_cond_signal.c
Normal file
26
support/xpthread_cond_signal.c
Normal file
@ -0,0 +1,26 @@
|
|||||||
|
/* pthread_cond_signal with error checking.
|
||||||
|
Copyright (C) 2022 Free Software Foundation, Inc.
|
||||||
|
This file is part of the GNU C Library.
|
||||||
|
|
||||||
|
The GNU C Library is free software; you can redistribute it and/or
|
||||||
|
modify it under the terms of the GNU Lesser General Public
|
||||||
|
License as published by the Free Software Foundation; either
|
||||||
|
version 2.1 of the License, or (at your option) any later version.
|
||||||
|
|
||||||
|
The GNU C Library is distributed in the hope that it will be useful,
|
||||||
|
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
|
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||||
|
Lesser General Public License for more details.
|
||||||
|
|
||||||
|
You should have received a copy of the GNU Lesser General Public
|
||||||
|
License along with the GNU C Library; if not, see
|
||||||
|
<https://www.gnu.org/licenses/>. */
|
||||||
|
|
||||||
|
#include <support/xthread.h>
|
||||||
|
|
||||||
|
void
|
||||||
|
xpthread_cond_signal (pthread_cond_t *cond)
|
||||||
|
{
|
||||||
|
xpthread_check_return
|
||||||
|
("pthread_cond_signal", pthread_cond_signal (cond));
|
||||||
|
}
|
@ -62,6 +62,7 @@ void xpthread_mutex_consistent (pthread_mutex_t *);
|
|||||||
void xpthread_spin_lock (pthread_spinlock_t *lock);
|
void xpthread_spin_lock (pthread_spinlock_t *lock);
|
||||||
void xpthread_spin_unlock (pthread_spinlock_t *lock);
|
void xpthread_spin_unlock (pthread_spinlock_t *lock);
|
||||||
void xpthread_cond_wait (pthread_cond_t * cond, pthread_mutex_t * mutex);
|
void xpthread_cond_wait (pthread_cond_t * cond, pthread_mutex_t * mutex);
|
||||||
|
void xpthread_cond_signal (pthread_cond_t *cond);
|
||||||
pthread_t xpthread_create (pthread_attr_t *attr,
|
pthread_t xpthread_create (pthread_attr_t *attr,
|
||||||
void *(*thread_func) (void *), void *closure);
|
void *(*thread_func) (void *), void *closure);
|
||||||
void xpthread_detach (pthread_t thr);
|
void xpthread_detach (pthread_t thr);
|
||||||
|
Loading…
Reference in New Issue
Block a user