From efe010ca7aae71d0cda39e95332ba163fce66f2d Mon Sep 17 00:00:00 2001 From: Oliver Kowalke Date: Thu, 21 Feb 2013 16:34:09 +0100 Subject: [PATCH] bild isntructions --- README.md | 10 ++++++++++ include/boost/fiber/condition.hpp | 2 +- 2 files changed, 11 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 975fc89c..579e28eb 100644 --- a/README.md +++ b/README.md @@ -23,13 +23,23 @@ migrated between threads. Buiding: Detailed instructions can be found at https://svn.boost.org/trac/boost/wiki/TryModBoost. git clone http://github.com/boostorg/boost modular-boost + cd modular-boost + git submodule update --init + cd libs + git clone http://github.com/olk/boost-fiber fiber + cd .. + cmake -P forward_headers.cmake + ./bootstrap.sh + cp b2 /usr/local/bin + cd libs/fiber/test + b2 diff --git a/include/boost/fiber/condition.hpp b/include/boost/fiber/condition.hpp index e9b62f2a..439cb0f5 100644 --- a/include/boost/fiber/condition.hpp +++ b/include/boost/fiber/condition.hpp @@ -91,9 +91,9 @@ public: // store this fiber in order to be notified later unique_lock< detail::spinlock > lk( waiting_mtx_); waiting_.push_back( n); - lt.unlock(); lk.unlock(); + lt.unlock(); while ( ! n->is_ready() ) { fprintf(stdout, "condition: main-fiber not woken-up\n");