[packages/OpenImageIO] - empty try_lock for nonthread case

arekm arekm at pld-linux.org
Wed Nov 6 06:23:42 CET 2013


commit 9a3eb5426513826b04e8e14d79336b9991a8daab
Author: Arkadiusz Miśkiewicz <arekm at maven.pl>
Date:   Wed Nov 6 06:23:38 2013 +0100

    - empty try_lock for nonthread case

 OpenImageIO-build.patch | 10 ++++++++++
 1 file changed, 10 insertions(+)
---
diff --git a/OpenImageIO-build.patch b/OpenImageIO-build.patch
index 85117da..9ae91ac 100644
--- a/OpenImageIO-build.patch
+++ b/OpenImageIO-build.patch
@@ -7,3 +7,13 @@
      include_directories (${FIELD3D_INCLUDES})
      add_oiio_plugin (field3dinput.cpp field3doutput.cpp
                       LINK_LIBRARIES ${FIELD3D_LIBRARY}
+--- OpenImageIO-oiio-bcdad81/src/include/thread.h~	2013-11-01 18:03:46.000000000 +0100
++++ OpenImageIO-oiio-bcdad81/src/include/thread.h	2013-11-06 06:22:43.859550166 +0100
+@@ -128,6 +128,7 @@
+     void unlock () { }
+     void lock_shared () { }
+     void unlock_shared () { }
++    bool try_lock () { return true; }
+ };
+ 
+ /// Null lock that can be substituted for a real one to test how much
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/OpenImageIO.git/commitdiff/9a3eb5426513826b04e8e14d79336b9991a8daab



More information about the pld-cvs-commit mailing list