components/coolkey/patches/03-machdep.h.patch
branchs11u3-sru
changeset 6535 8f23248b161c
equal deleted inserted replaced
6529:50a81baffe58 6535:8f23248b161c
       
     1 Upstream fixes already included in the latest community updates to coolkey v1.1.0
       
     2 
       
     3 Addresses thread lock issue.
       
     4 
       
     5 --- ORIGINAL/./src/coolkey/machdep.h	2016-06-24 16:07:19.701019060 -0400
       
     6 +++ ././src/coolkey/machdep.h	2016-06-24 12:29:02.439594078 -0400
       
     7 @@ -40,12 +40,14 @@
       
     8  class OSLock {
       
     9  private:
       
    10     OSLockData *lockData;
       
    11 +   static bool needThread;
       
    12  public:
       
    13     OSLock(bool exceptionAllowed = true);
       
    14     ~OSLock();
       
    15     bool isValid();
       
    16     void getLock();
       
    17     void releaseLock();
       
    18 +   static void setThreadSafe(bool thread) { needThread = thread; }
       
    19  };
       
    20  
       
    21  typedef unsigned long OSTime;