thr_cond.c (0ab1bfc7b28f495718a3dc4e4bc0faaea5684b0f) thr_cond.c (c7904405a8d47f64c3b0e73158572e2dc8ef0217)
1/*-
2 * SPDX-License-Identifier: BSD-2-Clause-FreeBSD
3 *
4 * Copyright (c) 2005 David Xu <davidxu@freebsd.org>
5 * Copyright (c) 2015 The FreeBSD Foundation
6 * All rights reserved.
7 *
8 * Portions of this software were developed by Konstantin Belousov

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

38#include <errno.h>
39#include <string.h>
40#include <pthread.h>
41#include <limits.h>
42#include "un-namespace.h"
43
44#include "thr_private.h"
45
1/*-
2 * SPDX-License-Identifier: BSD-2-Clause-FreeBSD
3 *
4 * Copyright (c) 2005 David Xu <davidxu@freebsd.org>
5 * Copyright (c) 2015 The FreeBSD Foundation
6 * All rights reserved.
7 *
8 * Portions of this software were developed by Konstantin Belousov

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

38#include <errno.h>
39#include <string.h>
40#include <pthread.h>
41#include <limits.h>
42#include "un-namespace.h"
43
44#include "thr_private.h"
45
46_Static_assert(sizeof(struct pthread_cond) <= PAGE_SIZE,
46_Static_assert(sizeof(struct pthread_cond) <= THR_PAGE_SIZE_MIN,
47 "pthread_cond too large");
48
49/*
50 * Prototypes
51 */
52int __pthread_cond_timedwait(pthread_cond_t *cond, pthread_mutex_t *mutex,
53 const struct timespec * abstime);
54static int cond_init(pthread_cond_t *cond, const pthread_condattr_t *attr);

--- 505 unchanged lines hidden ---
47 "pthread_cond too large");
48
49/*
50 * Prototypes
51 */
52int __pthread_cond_timedwait(pthread_cond_t *cond, pthread_mutex_t *mutex,
53 const struct timespec * abstime);
54static int cond_init(pthread_cond_t *cond, const pthread_condattr_t *attr);

--- 505 unchanged lines hidden ---