diff options
author | Yu Chien Peter Lin <peterlin@andestech.com> | 2022-09-30 20:19:50 +0800 |
---|---|---|
committer | Adhemerval Zanella <adhemerval.zanella@linaro.org> | 2022-10-03 11:19:36 -0300 |
commit | 3bea50ccbc925d4fc5f85ec402b6154cbe770b71 (patch) | |
tree | a082ccf20b91ef9e450dc9aac0861e8f759df6fe /support/xpthread_cond_signal.c | |
parent | b7bd94068e55d5fa8681e2ab4802d31852ea404e (diff) | |
download | glibc-3bea50ccbc925d4fc5f85ec402b6154cbe770b71.tar glibc-3bea50ccbc925d4fc5f85ec402b6154cbe770b71.tar.gz glibc-3bea50ccbc925d4fc5f85ec402b6154cbe770b71.tar.bz2 glibc-3bea50ccbc925d4fc5f85ec402b6154cbe770b71.zip |
support: Add xpthread_cond_signal wrapper
Signed-off-by: Yu Chien Peter Lin <peterlin@andestech.com>
Reviewed-by: Adhemerval Zanella <adhemerval.zanella@linaro.org>
Diffstat (limited to 'support/xpthread_cond_signal.c')
-rw-r--r-- | support/xpthread_cond_signal.c | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/support/xpthread_cond_signal.c b/support/xpthread_cond_signal.c new file mode 100644 index 0000000000..ed0be1a8ab --- /dev/null +++ b/support/xpthread_cond_signal.c @@ -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)); +} |