From 3e4ff006f700b50d46734cd890ce5e02dfc457e8 Mon Sep 17 00:00:00 2001 From: Sam Nelson Date: Thu, 1 Jun 2017 16:26:52 -0400 Subject: [PATCH] host_linux: Temporarily disable local lock Currently GateMutex on linux is not supported in IPC for certain platforms Note: Disabling of the local lock will prevent using the Sharedregion and Heapmem APIs to be used from multiple threads. But given the example only supports single thread currently does not affect functionality Signed-off-by: Sam Nelson --- host_linux/simple_buffer_example/host/HeapMem/src/HeapMem.c | 2 +- .../simple_buffer_example/host/SharedRegion/src/SharedRegion.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/host_linux/simple_buffer_example/host/HeapMem/src/HeapMem.c b/host_linux/simple_buffer_example/host/HeapMem/src/HeapMem.c index 0c3f540..4c608af 100755 --- a/host_linux/simple_buffer_example/host/HeapMem/src/HeapMem.c +++ b/host_linux/simple_buffer_example/host/HeapMem/src/HeapMem.c @@ -90,7 +90,7 @@ #include "_SharedRegion.h" -#define ENABLE_LOCAL_LOCK +//#define ENABLE_LOCAL_LOCK /* Module level headers */ #include <_HeapMem.h> diff --git a/host_linux/simple_buffer_example/host/SharedRegion/src/SharedRegion.c b/host_linux/simple_buffer_example/host/SharedRegion/src/SharedRegion.c index f9c4ae1..a2cd47d 100755 --- a/host_linux/simple_buffer_example/host/SharedRegion/src/SharedRegion.c +++ b/host_linux/simple_buffer_example/host/SharedRegion/src/SharedRegion.c @@ -53,7 +53,7 @@ #include "_SharedRegion.h" -#define ENABLE_LOCAL_LOCK +//#define ENABLE_LOCAL_LOCK #define ROUNDUP(size, align) \ (UInt32)(((UInt32)(size) + ((UInt32)(align) - 1)) & ~((UInt32)(align) - 1)) -- 2.26.2