Ticket #15736: 0001-Haiku-disable-pthread_barrier_t.patch

File 0001-Haiku-disable-pthread_barrier_t.patch, 1.1 KB (added by X512, 4 years ago)

Mesa patch to disable pthread_barrier_t

  • src/util/u_thread.h

    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  
    11/**************************************************************************
    2  * 
     2 *
    33 * Copyright 1999-2006 Brian Paul
    44 * Copyright 2008 VMware, Inc.
    55 * All Rights Reserved.
    6  * 
     6 *
    77 * Permission is hereby granted, free of charge, to any person obtaining a
    88 * copy of this software and associated documentation files (the "Software"),
    99 * to deal in the Software without restriction, including without limitation
    static inline bool u_thread_is_self(thrd_t thread)  
    179179 * util_barrier
    180180 */
    181181
    182 #if defined(HAVE_PTHREAD) && !defined(__APPLE__)
     182#if defined(HAVE_PTHREAD) && !defined(__APPLE__) && !defined(__HAIKU__)
    183183
    184184typedef pthread_barrier_t util_barrier;
    185185