From 1f543f6eb368c3b23aa1f9cd2d23f0dba1456dec Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Mon, 30 Jan 2017 12:44:15 +0200 Subject: Add notion of load phase generation --- build2/types | 33 --------------------------------- 1 file changed, 33 deletions(-) (limited to 'build2/types') diff --git a/build2/types b/build2/types index 1e7a347..daf10d3 100644 --- a/build2/types +++ b/build2/types @@ -86,39 +86,6 @@ namespace build2 using slock = std::shared_lock; using ulock = std::unique_lock; - // Re-lock shared to exclusive for the lifetime or rlock. - // - struct rlock - { - explicit - rlock (slock* sl) - : sl_ (sl) - { - if (sl_ != nullptr) - { - sl_->unlock (); - ul_ = ulock (*sl_->mutex ()); - } - } - - ~rlock () - { - if (sl_ != nullptr) - { - ul_.unlock (); - sl_->lock (); - } - } - - // Can be treated as const ulock. - // - operator const ulock& () const {return ul_;} - - private: - slock* sl_; - ulock ul_; - }; - // Exceptions. // // While is included, there is no using for std::exception -- -- cgit v1.1