Rename classes and small adjustments

This commit is contained in:
topjohnwu
2019-09-25 23:55:39 -04:00
parent debd1d7d54
commit 947dae4900
13 changed files with 53 additions and 57 deletions

View File

@ -89,7 +89,7 @@ static shared_ptr<su_info> get_su_info(unsigned uid) {
shared_ptr<su_info> info;
{
MutexGuard lock(cache_lock);
mutex_guard lock(cache_lock);
if (!cached || cached->uid != uid || !cached->is_fresh())
cached = make_shared<su_info>(uid);
cached->refresh();
@ -97,7 +97,7 @@ static shared_ptr<su_info> get_su_info(unsigned uid) {
}
info->lock();
RunFinally unlock([&] {
run_finally unlock([&] {
info->unlock();
});