added an example with concurrent threads doing assertions - relates #4 (currently ctest fails on it...)
diff --git a/examples/all_features/concurrency.cpp b/examples/all_features/concurrency.cpp
new file mode 100644
index 0000000..864cc32
--- /dev/null
+++ b/examples/all_features/concurrency.cpp
@@ -0,0 +1,19 @@
+#include "doctest.h"
+
+DOCTEST_MAKE_STD_HEADERS_CLEAN_FROM_WARNINGS_ON_WALL_BEGIN
+#include <thread>
+DOCTEST_MAKE_STD_HEADERS_CLEAN_FROM_WARNINGS_ON_WALL_END
+
+static void call_from_thread() {
+ INFO("trololo");
+ CHECK(1 == 1);
+ CHECK(1 == 2);
+}
+
+TEST_CASE("threads...") {
+ std::thread t1(call_from_thread);
+ std::thread t2(call_from_thread);
+
+ t1.join();
+ t2.join();
+}