components/coolkey/patches/03-machdep.h.patch
author sreynata <sreyas.natarajan@oracle.com>
Mon, 17 Oct 2016 23:20:28 -0700
changeset 7120 b01185225eaa
parent 6401 8e624b116c1d
permissions -rw-r--r--
24303011 libsif needs sync-up till 1.1 version

Upstream fixes already included in the latest community updates to coolkey v1.1.0

Addresses thread lock issue.

--- ORIGINAL/./src/coolkey/machdep.h	2016-06-24 16:07:19.701019060 -0400
+++ ././src/coolkey/machdep.h	2016-06-24 12:29:02.439594078 -0400
@@ -40,12 +40,14 @@
 class OSLock {
 private:
    OSLockData *lockData;
+   static bool needThread;
 public:
    OSLock(bool exceptionAllowed = true);
    ~OSLock();
    bool isValid();
    void getLock();
    void releaseLock();
+   static void setThreadSafe(bool thread) { needThread = thread; }
 };
 
 typedef unsigned long OSTime;