thr_rwlock.c (5e53a4f90f82c4345f277dd87cc9292f26e04a29) thr_rwlock.c (b6413b6db8756c1ecae5e575e6516f811966046f)
1/*-
2 * SPDX-License-Identifier: BSD-2-Clause-FreeBSD
3 *
4 * Copyright (c) 1998 Alex Nash
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

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

220
221int
222_pthread_rwlock_rdlock (pthread_rwlock_t *rwlock)
223{
224 return (rwlock_rdlock_common(rwlock, NULL));
225}
226
227int
1/*-
2 * SPDX-License-Identifier: BSD-2-Clause-FreeBSD
3 *
4 * Copyright (c) 1998 Alex Nash
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

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

220
221int
222_pthread_rwlock_rdlock (pthread_rwlock_t *rwlock)
223{
224 return (rwlock_rdlock_common(rwlock, NULL));
225}
226
227int
228_pthread_rwlock_timedrdlock (pthread_rwlock_t *rwlock,
229 const struct timespec *abstime)
228_pthread_rwlock_timedrdlock(pthread_rwlock_t * __restrict rwlock,
229 const struct timespec * __restrict abstime)
230{
231 return (rwlock_rdlock_common(rwlock, abstime));
232}
233
234int
235_pthread_rwlock_tryrdlock (pthread_rwlock_t *rwlock)
236{
237 struct pthread *curthread = _get_curthread();

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

332
333int
334_pthread_rwlock_wrlock (pthread_rwlock_t *rwlock)
335{
336 return (rwlock_wrlock_common (rwlock, NULL));
337}
338
339int
230{
231 return (rwlock_rdlock_common(rwlock, abstime));
232}
233
234int
235_pthread_rwlock_tryrdlock (pthread_rwlock_t *rwlock)
236{
237 struct pthread *curthread = _get_curthread();

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

332
333int
334_pthread_rwlock_wrlock (pthread_rwlock_t *rwlock)
335{
336 return (rwlock_wrlock_common (rwlock, NULL));
337}
338
339int
340_pthread_rwlock_timedwrlock (pthread_rwlock_t *rwlock,
341 const struct timespec *abstime)
340_pthread_rwlock_timedwrlock(pthread_rwlock_t * __restrict rwlock,
341 const struct timespec * __restrict abstime)
342{
343 return (rwlock_wrlock_common (rwlock, abstime));
344}
345
346int
347_pthread_rwlock_unlock(pthread_rwlock_t *rwlock)
348{
349 struct pthread *curthread = _get_curthread();

--- 28 unchanged lines hidden ---
342{
343 return (rwlock_wrlock_common (rwlock, abstime));
344}
345
346int
347_pthread_rwlock_unlock(pthread_rwlock_t *rwlock)
348{
349 struct pthread *curthread = _get_curthread();

--- 28 unchanged lines hidden ---