thr_barrier.c (3611ec604864a7d4dcc9a3ea898c80eb35eef8a0) thr_barrier.c (c7904405a8d47f64c3b0e73158572e2dc8ef0217)
1/*-
2 * SPDX-License-Identifier: BSD-2-Clause-FreeBSD
3 *
4 * Copyright (c) 2003 David Xu <davidxu@freebsd.org>
5 * All rights reserved.
6 *
7 * Redistribution and use in source and binary forms, with or without
8 * modification, are permitted provided that the following conditions

--- 23 unchanged lines hidden (view full) ---

32#include "namespace.h"
33#include <errno.h>
34#include <stdlib.h>
35#include <pthread.h>
36#include "un-namespace.h"
37
38#include "thr_private.h"
39
1/*-
2 * SPDX-License-Identifier: BSD-2-Clause-FreeBSD
3 *
4 * Copyright (c) 2003 David Xu <davidxu@freebsd.org>
5 * All rights reserved.
6 *
7 * Redistribution and use in source and binary forms, with or without
8 * modification, are permitted provided that the following conditions

--- 23 unchanged lines hidden (view full) ---

32#include "namespace.h"
33#include <errno.h>
34#include <stdlib.h>
35#include <pthread.h>
36#include "un-namespace.h"
37
38#include "thr_private.h"
39
40_Static_assert(sizeof(struct pthread_barrier) <= PAGE_SIZE,
40_Static_assert(sizeof(struct pthread_barrier) <= THR_PAGE_SIZE_MIN,
41 "pthread_barrier is too large for off-page");
42
43__weak_reference(_pthread_barrier_init, pthread_barrier_init);
44__weak_reference(_pthread_barrier_wait, pthread_barrier_wait);
45__weak_reference(_pthread_barrier_destroy, pthread_barrier_destroy);
46
47int
48_pthread_barrier_destroy(pthread_barrier_t *barrier)

--- 126 unchanged lines hidden ---
41 "pthread_barrier is too large for off-page");
42
43__weak_reference(_pthread_barrier_init, pthread_barrier_init);
44__weak_reference(_pthread_barrier_wait, pthread_barrier_wait);
45__weak_reference(_pthread_barrier_destroy, pthread_barrier_destroy);
46
47int
48_pthread_barrier_destroy(pthread_barrier_t *barrier)

--- 126 unchanged lines hidden ---