mirror of
https://github.com/boostorg/thread.git
synced 2026-01-24 06:22:12 +00:00
11 lines
217 B
C++
11 lines
217 B
C++
#include <boost/thread/shared_mutex.hpp>
|
|
|
|
int main() {
|
|
|
|
boost::shared_mutex mtx; boost::upgrade_lock<boost::shared_mutex> lk(mtx);
|
|
|
|
boost::upgrade_to_unique_lock<boost::shared_mutex> lk2(lk);
|
|
|
|
return 0;
|
|
}
|