diff options
| author | Daniel Mensinger <daniel@mensinger-ka.de> | 2019-12-28 13:37:31 +0100 |
|---|---|---|
| committer | Jussi Pakkanen <jpakkane@gmail.com> | 2019-12-29 19:02:24 +0200 |
| commit | 4f6453bc327d91c29956459951a06bcdc73ba040 (patch) | |
| tree | 2eecc6438dfa3399c67b67a0ea58ef8a49720481 /test cases/cmake/16 threads/subprojects/cmMod/cmMod.cpp | |
| parent | d67423ab11bbcd0e81d81005608a97363804f6a2 (diff) | |
| download | meson-4f6453bc327d91c29956459951a06bcdc73ba040.tar.gz | |
cmake: Use trace for missing link flags (fixes #6386)
This is neccessary for static libraries, since the
CMake file API does not add link flags here.
Diffstat (limited to 'test cases/cmake/16 threads/subprojects/cmMod/cmMod.cpp')
| -rw-r--r-- | test cases/cmake/16 threads/subprojects/cmMod/cmMod.cpp | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/test cases/cmake/16 threads/subprojects/cmMod/cmMod.cpp b/test cases/cmake/16 threads/subprojects/cmMod/cmMod.cpp new file mode 100644 index 000000000..f971eeba0 --- /dev/null +++ b/test cases/cmake/16 threads/subprojects/cmMod/cmMod.cpp @@ -0,0 +1,15 @@ +#include "cmMod.hpp" + +#include <chrono> +#include <thread> + +using namespace std::chrono_literals; + +void CmMod::asyncIncrement() { + std::thread t1([this]() { + std::this_thread::sleep_for(100ms); + num += 1; + }); + + t1.join(); +} |
