Created
July 20, 2014 05:46
-
-
Save RyanGordon/2e5b5769aa40ce04e0a1 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- 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