From d19c702291ff3bd9e769a152e7db96e17f5167f7 Mon Sep 17 00:00:00 2001
From: theraven <theraven@FreeBSD.org>
Date: Thu, 7 Feb 2013 15:45:28 +0000
Subject: Import new libc++ to head.  Various small fixes and cleanups.

MFC after:	2 weeks
---
 contrib/libc++/src/future.cpp | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

(limited to 'contrib/libc++/src/future.cpp')

diff --git a/contrib/libc++/src/future.cpp b/contrib/libc++/src/future.cpp
index feb37e4..7d9a5b5 100644
--- a/contrib/libc++/src/future.cpp
+++ b/contrib/libc++/src/future.cpp
@@ -78,8 +78,8 @@ __assoc_sub_state::set_value()
         throw future_error(make_error_code(future_errc::promise_already_satisfied));
 #endif
     __state_ |= __constructed | ready;
-    __lk.unlock();
     __cv_.notify_all();
+    __lk.unlock();
 }
 
 void
-- 
cgit v1.1