Skip to content

Instantly share code, notes, and snippets.

@RyanGordon
Created July 20, 2014 05:46
Show Gist options
  • Save RyanGordon/2e5b5769aa40ce04e0a1 to your computer and use it in GitHub Desktop.
Save RyanGordon/2e5b5769aa40ce04e0a1 to your computer and use it in GitHub Desktop.
--- a/examples/protonect/cmake_modules/SetupLibfreenect2Threading.cmake
+++ b/examples/protonect/cmake_modules/SetupLibfreenect2Threading.cmake
@@ -1,5 +1,6 @@
INCLUDE(CheckCXXSourceCompiles)
+
CHECK_CXX_SOURCE_COMPILES("
#include <thread>
#include <mutex>
@@ -12,6 +13,7 @@ int main(int argc, char** argv) {
std::lock_guard<std::mutex> lock_guard(mutex);
std::unique_lock<std::mutex> unique_lock(mutex);
std::condition_variable condition_variable;
+ thread_local int i;
return 0;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment