Home
last modified time | relevance | path

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 Dfile_n_exporter.cpp85 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 Dfile_ffi.cpp117 RetCode FfiOHOSFILEFsTryLock(int64_t id, bool exclusive) in FfiOHOSFILEFsTryLock() argument
125 return instance->TryLock(id, exclusive); in FfiOHOSFILEFsTryLock()
H A Dfile_ffi.h30 FFI_EXPORT RetCode FfiOHOSFILEFsTryLock(int64_t id, bool exclusive);
H A Dfile_impl.h62 int TryLock(int64_t id, bool exclusive);
H A Dfile_impl.cpp347 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