diff options
author | Boris Kolpackov <boris@codesynthesis.com> | 2017-01-30 12:44:15 +0200 |
---|---|---|
committer | Boris Kolpackov <boris@codesynthesis.com> | 2017-02-13 12:42:41 +0200 |
commit | 1f543f6eb368c3b23aa1f9cd2d23f0dba1456dec (patch) | |
tree | a3c1b756c2cc27fac0ac392ce8d108e147b23840 /build2/types | |
parent | b262d2c9c56eed18d043dccefac02b54a6ae2f95 (diff) |
Add notion of load phase generation
Diffstat (limited to 'build2/types')
-rw-r--r-- | build2/types | 33 |
1 files changed, 0 insertions, 33 deletions
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<shared_mutex>; using ulock = std::unique_lock<shared_mutex>; - // 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 <exception> is included, there is no using for std::exception -- |