mirror of
https://github.com/topjohnwu/Magisk.git
synced 2025-06-12 13:17:39 +02:00
Rename classes and small adjustments
This commit is contained in:
@ -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();
|
||||
});
|
||||
|
||||
|
Reference in New Issue
Block a user