Searched refs:exclusive (Results 1 - 5 of 5) sorted by relevance
/foundation/filemanagement/file_api/interfaces/kits/js/src/mod_fs/class_file/ |
H A D | file_n_exporter.cpp | 85 static bool GetExclusive(napi_env env, NFuncArg &funcArg, bool &exclusive) in GetExclusive() argument 89 tie(succ, exclusive) = NVal(env, funcArg[NARG_POS::FIRST]).ToBool(exclusive); in GetExclusive() 91 HILOGE("Invalid exclusive"); in GetExclusive() 213 bool exclusive = false; in Lock() local 214 if (!GetExclusive(env, funcArg, exclusive)) { in Lock() 217 auto cbExec = [exclusive, fileEntity]() -> NError { in Lock() 223 auto mode = exclusive ? LOCK_EX : LOCK_SH; in Lock() 267 bool exclusive = false; in TryLock() local 268 if (!GetExclusive(env, funcArg, exclusive)) { in TryLock() [all...] |
/foundation/filemanagement/file_api/interfaces/kits/cj/src/ |
H A D | file_ffi.cpp | 117 RetCode FfiOHOSFILEFsTryLock(int64_t id, bool exclusive) in FfiOHOSFILEFsTryLock() argument 125 return instance->TryLock(id, exclusive); in FfiOHOSFILEFsTryLock()
|
H A D | file_ffi.h | 30 FFI_EXPORT RetCode FfiOHOSFILEFsTryLock(int64_t id, bool exclusive);
|
H A D | file_impl.h | 62 int TryLock(int64_t id, bool exclusive);
|
H A D | file_impl.cpp | 347 int FileEntity::TryLock(int64_t id, bool exclusive) in TryLock() argument 355 auto mode = exclusive ? LOCK_EX : LOCK_SH; in TryLock()
|
Completed in 3 milliseconds