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");