From eb5c4b548329d269044deb7127e629892995b6b3 Mon Sep 17 00:00:00 2001
From: X512 <danger_mail@list.ru>
Date: Sat, 22 Feb 2020 14:50:24 +0900
Subject: Haiku: disable pthread_barrier_t
It cause lock on multicore systems.
---
src/util/u_thread.h | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/src/util/u_thread.h b/src/util/u_thread.h
index 1f2a104..0f1b1c5 100644
a
|
b
|
|
1 | 1 | /************************************************************************** |
2 | | * |
| 2 | * |
3 | 3 | * Copyright 1999-2006 Brian Paul |
4 | 4 | * Copyright 2008 VMware, Inc. |
5 | 5 | * All Rights Reserved. |
6 | | * |
| 6 | * |
7 | 7 | * Permission is hereby granted, free of charge, to any person obtaining a |
8 | 8 | * copy of this software and associated documentation files (the "Software"), |
9 | 9 | * to deal in the Software without restriction, including without limitation |
… |
… |
static inline bool u_thread_is_self(thrd_t thread)
|
179 | 179 | * util_barrier |
180 | 180 | */ |
181 | 181 | |
182 | | #if defined(HAVE_PTHREAD) && !defined(__APPLE__) |
| 182 | #if defined(HAVE_PTHREAD) && !defined(__APPLE__) && !defined(__HAIKU__) |
183 | 183 | |
184 | 184 | typedef pthread_barrier_t util_barrier; |
185 | 185 | |