diff options
author | Samuel Thibault <samuel.thibault@ens-lyon.org> | 2020-01-13 01:17:07 +0100 |
---|---|---|
committer | Samuel Thibault <samuel.thibault@ens-lyon.org> | 2020-01-13 01:24:43 +0100 |
commit | 196e62cbe4acdab22a95740b618c699863ed460c (patch) | |
tree | 5ef9cc8050f63da1e83683b703918f0c52931c9f /sysdeps/htl/pt-barrier-init.c | |
parent | e404be33feaa586231fe30e3bdf6d380a79c2679 (diff) | |
download | glibc-196e62cbe4acdab22a95740b618c699863ed460c.tar glibc-196e62cbe4acdab22a95740b618c699863ed460c.tar.gz glibc-196e62cbe4acdab22a95740b618c699863ed460c.tar.bz2 glibc-196e62cbe4acdab22a95740b618c699863ed460c.zip |
htl: Add type sizes in bits/pthreadtypes-arch.h and check them
Diffstat (limited to 'sysdeps/htl/pt-barrier-init.c')
-rw-r--r-- | sysdeps/htl/pt-barrier-init.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/sysdeps/htl/pt-barrier-init.c b/sysdeps/htl/pt-barrier-init.c index f8befde66d..2197618238 100644 --- a/sysdeps/htl/pt-barrier-init.c +++ b/sysdeps/htl/pt-barrier-init.c @@ -26,6 +26,8 @@ int pthread_barrier_init (pthread_barrier_t *barrier, const pthread_barrierattr_t *attr, unsigned count) { + ASSERT_TYPE_SIZE (pthread_barrier_t, __SIZEOF_PTHREAD_BARRIER_T); + if (count == 0) return EINVAL; |