[futures.atomic_future] and notify_all_at_thread_exit. This completes the header <future> and all of Chapter 30 (for C++0x enabled compilers).
git-svn-id: https://llvm.org/svn/llvm-project/libcxx/trunk@113017 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/src/condition_variable.cpp b/src/condition_variable.cpp
index 7373ec3..3bafa8c 100644
--- a/src/condition_variable.cpp
+++ b/src/condition_variable.cpp
@@ -61,4 +61,10 @@
__throw_system_error(ec, "condition_variable timed_wait failed");
}
+void
+notify_all_at_thread_exit(condition_variable& cond, unique_lock<mutex> lk)
+{
+ __thread_local_data->notify_all_at_thread_exit(&cond, lk.release());
+}
+
_LIBCPP_END_NAMESPACE_STD