mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-09 04:38:03 +02:00
util: Merge duplicated function prototype in u_thread.h that named with util_barrier*
Signed-off-by: Yonggang Luo <luoyonggang@gmail.com> Reviewed-by: Marek Olšák <marek.olsak@amd.com> Reviewed-by: Jesse Natalie <jenatali@microsoft.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/19266>
This commit is contained in:
parent
17d46893fd
commit
64ee9c1158
1 changed files with 2 additions and 8 deletions
|
|
@ -123,12 +123,6 @@ static inline bool u_thread_is_self(thrd_t thread)
|
|||
|
||||
typedef pthread_barrier_t util_barrier;
|
||||
|
||||
void util_barrier_init(util_barrier *barrier, unsigned count);
|
||||
|
||||
void util_barrier_destroy(util_barrier *barrier);
|
||||
|
||||
bool util_barrier_wait(util_barrier *barrier);
|
||||
|
||||
#else /* If the OS doesn't have its own, implement barriers using a mutex and a condvar */
|
||||
|
||||
typedef struct {
|
||||
|
|
@ -139,14 +133,14 @@ typedef struct {
|
|||
cnd_t condvar;
|
||||
} util_barrier;
|
||||
|
||||
#endif
|
||||
|
||||
void util_barrier_init(util_barrier *barrier, unsigned count);
|
||||
|
||||
void util_barrier_destroy(util_barrier *barrier);
|
||||
|
||||
bool util_barrier_wait(util_barrier *barrier);
|
||||
|
||||
#endif
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue