Home
last modified time | relevance | path

Searched refs:UserDbLock (Results 1 – 1 of 1) sorted by relevance

/ohos5.0/base/security/asset/services/db_operator/src/
H A Ddatabase.rs51 pub(crate) struct UserDbLock { struct
58 …static ref SPLIT_DB_LOCK_MAP: Mutex<HashMap<i32, &'static UserDbLock>> = Mutex::new(HashMap::new()…
59 …static ref USER_DB_LOCK_MAP: Mutex<HashMap<(i32, String), &'static UserDbLock>> = Mutex::new(HashM…
62 pub(crate) fn get_split_db_lock_by_user_id(user_id: i32) -> &'static UserDbLock { in get_split_db_lock_by_user_id() argument
68 let nf = Box::new(UserDbLock { mtx: Mutex::new(user_id) }); in get_split_db_lock_by_user_id()
71 let nf: &'static UserDbLock = Box::leak(nf); in get_split_db_lock_by_user_id() variable
78 … get_file_lock_by_user_id_db_file_name(user_id: i32, db_file_name: String) -> &'static UserDbLock { in get_file_lock_by_user_id_db_file_name() argument
85 let nf = Box::new(UserDbLock { mtx: Mutex::new(user_id) }); in get_file_lock_by_user_id_db_file_name()
88 let nf: &'static UserDbLock = Box::leak(nf); in get_file_lock_by_user_id_db_file_name() variable
99 pub(crate) db_lock: &'static UserDbLock,