Searched refs:HksStorageFileLock (Results 1 – 4 of 4) sorted by relevance
28 struct HksStorageFileLock { struct32 HksStorageFileLock *next; argument35 static HksStorageFileLock *g_lockListFirst = NULL;36 static HksStorageFileLock *g_lockListLast = NULL;39 static void FreeFileLock(HksStorageFileLock *lock) in FreeFileLock()64 HksStorageFileLock *iter = g_lockListFirst; in ClearLockList()65 HksStorageFileLock *temp = NULL; in ClearLockList()78 HksStorageFileLock *iter = g_lockListFirst; in FindFileLock()91 HksStorageFileLock *lock = HksMalloc(sizeof(HksStorageFileLock)); in AllocFileLock()114 static void AddRef(HksStorageFileLock *lock) in AddRef()[all …]
42 static HksStorageFileLock *CreateStorageFileLock(const char *path, const char *fileName) in CreateStorageFileLock()54 HksStorageFileLock *lock = HksStorageFileLockCreate(fullPath); in CreateStorageFileLock()64 HksStorageFileLock *lock = CreateStorageFileLock(path, fileName); in HksStorageWriteFile()79 HksStorageFileLock *lock = CreateStorageFileLock(path, fileName); in HksStorageReadFile()141 HksStorageFileLock *lock = CreateStorageFileLock(path, fileName); in HksStorageRemoveFile()
25 typedef struct HksStorageFileLock HksStorageFileLock; typedef27 HksStorageFileLock *HksStorageFileLockCreate(const char *path);28 int32_t HksStorageFileLockRead(HksStorageFileLock *lock);29 int32_t HksStorageFileUnlockRead(HksStorageFileLock *lock);30 int32_t HksStorageFileLockWrite(HksStorageFileLock *lock);31 int32_t HksStorageFileUnlockWrite(HksStorageFileLock *lock);32 void HksStorageFileLockRelease(HksStorageFileLock *lock);
34 HksStorageFileLock *lock = HksStorageFileLockCreate(&path[0]);50 std::vector<HksStorageFileLock *> locks;53 HksStorageFileLock *lock = HksStorageFileLockCreate(&path[0]);67 std::vector<HksStorageFileLock *> locks;69 HksStorageFileLock *lock = HksStorageFileLockCreate(&path[0]);76 HksStorageFileLock *first = locks[0];89 HksStorageFileLock *lock1 = HksStorageFileLockCreate(&path[0]);91 HksStorageFileLock *lock2 = HksStorageFileLockCreate(&path[0]);