| 281 | } |
| 282 | |
| 283 | inline bool shared_mutex::try_lock() |
| 284 | { |
| 285 | boost::unique_lock<mutex_t> lk(mut_); |
| 286 | if (!no_writer_no_readers()) |
| 287 | { |
| 288 | return false; |
| 289 | } |
| 290 | state_ = write_entered_; |
| 291 | return true; |
| 292 | } |
| 293 | |
| 294 | #ifdef BOOST_THREAD_USES_CHRONO |
| 295 | template <class Clock, class Duration> |
no outgoing calls
no test coverage detected