Add unique_lock construction utility
Summary:
Until C++17 constructor type deduction becomes a thing, we can use this
instead to mimic unique_lock construction without having to specify the type
of the mutex explicitly.
```
auto lck = folly::make_unique_lock(mutex);
// as opposed to
auto lck = std::unique_lock<MutexType>{mutex};
```
Reviewed By: davidtgoldblatt
Differential Revision: D10386999
fbshipit-source-id: 0780a6d1769597a3888305248bcdf93a84c9f9ee
Showing
Please register or sign in to comment