Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix for: issue #471 Adds gsl::joining_thread #509

Closed
wants to merge 15 commits into from

Conversation

galik
Copy link
Contributor

@galik galik commented May 21, 2017

This PR adds <gsl/gsl_thread> and tests/thread_tests.cpp

As per discussion in CppCoreGuidelines isocpp/CppCoreGuidelines#925

This PR provides gsl::joining_thread (gsl::detached_thread was removed)

@galik
Copy link
Contributor Author

galik commented May 21, 2017

I have no idea why some of these are failing. This branch does not touch the span tests and some failures seem to be due to missing files from the clang installation?

@galik
Copy link
Contributor Author

galik commented May 21, 2017

I suspect this is waiting for a fix for Issue: #510

@@ -53,6 +54,16 @@ target_compile_options(gsl_tests_config INTERFACE
>
)

target_link_libraries(gsl_tests_config INTERFACE
$<$<CXX_COMPILER_ID:GNU>:
-pthread
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

CMake provides functionality to discover currently used threading library.

find_package(Threads)
and
${CMAKE_THREAD_LIBS_INIT} or Threads::Threads

https://cmake.org/cmake/help/v3.9/module/FindThreads.html

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants