mirror of
https://github.com/topjohnwu/Magisk.git
synced 2025-12-03 09:21:57 +00:00
Use mutex_guard to lock su_info
This commit is contained in:
@@ -5,6 +5,7 @@
|
||||
#include <memory>
|
||||
|
||||
#include <db.h>
|
||||
#include <utils.h>
|
||||
|
||||
#define DEFAULT_SHELL "/system/bin/sh"
|
||||
|
||||
@@ -29,8 +30,7 @@ public:
|
||||
|
||||
su_info(unsigned uid = 0);
|
||||
~su_info();
|
||||
void lock();
|
||||
void unlock();
|
||||
mutex_guard lock();
|
||||
bool is_fresh();
|
||||
void refresh();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user