Home
last modified time | relevance | path

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

/external/lzma/C/
DThreads.c12 static WRes GetError() in GetError()
15 return res ? (WRes)res : 1; in GetError()
18 static WRes HandleToWRes(HANDLE h) { return (h != NULL) ? 0 : GetError(); } in HandleToWRes()
19 static WRes BOOLToWRes(BOOL v) { return v ? 0 : GetError(); } in BOOLToWRes()
21 WRes HandlePtr_Close(HANDLE *p) in HandlePtr_Close()
32 WRes Handle_WaitObject(HANDLE h) { return (WRes)WaitForSingleObject(h, INFINITE); } in Handle_WaitObject()
34 WRes Thread_Create(CThread *p, THREAD_FUNC_TYPE func, LPVOID param) in Thread_Create()
54 static WRes Event_Create(CEvent *p, BOOL manualReset, int signaled) in Event_Create()
60 WRes Event_Set(CEvent *p) { return BOOLToWRes(SetEvent(*p)); } in Event_Set()
61 WRes Event_Reset(CEvent *p) { return BOOLToWRes(ResetEvent(*p)); } in Event_Reset()
[all …]
DThreads.h15 WRes HandlePtr_Close(HANDLE *h);
16 WRes Handle_WaitObject(HANDLE h);
35 WRes Thread_Create(CThread *p, THREAD_FUNC_TYPE func, LPVOID param);
44 WRes Event_Set(CEvent *p);
45 WRes Event_Reset(CEvent *p);
46 WRes ManualResetEvent_Create(CManualResetEvent *p, int signaled);
47 WRes ManualResetEvent_CreateNotSignaled(CManualResetEvent *p);
48 WRes AutoResetEvent_Create(CAutoResetEvent *p, int signaled);
49 WRes AutoResetEvent_CreateNotSignaled(CAutoResetEvent *p);
56 WRes Semaphore_Create(CSemaphore *p, UInt32 initCount, UInt32 maxCount);
[all …]
D7zFile.h34 WRes InFile_Open(CSzFile *p, const char *name);
35 WRes OutFile_Open(CSzFile *p, const char *name);
38 WRes InFile_OpenW(CSzFile *p, const WCHAR *name);
39 WRes OutFile_OpenW(CSzFile *p, const WCHAR *name);
41 WRes File_Close(CSzFile *p);
44 WRes File_Read(CSzFile *p, void *data, size_t *size);
47 WRes File_Write(CSzFile *p, const void *data, size_t *size);
49 WRes File_Seek(CSzFile *p, Int64 *pos, ESzSeek origin);
50 WRes File_GetLength(CSzFile *p, UInt64 *length);
D7zFile.c40 static WRes File_Open(CSzFile *p, const char *name, int writeMode) in File_Open()
60 WRes InFile_Open(CSzFile *p, const char *name) { return File_Open(p, name, 0); } in InFile_Open()
61 WRes OutFile_Open(CSzFile *p, const char *name) { return File_Open(p, name, 1); } in OutFile_Open()
65 static WRes File_OpenW(CSzFile *p, const WCHAR *name, int writeMode) in File_OpenW()
74 WRes InFile_OpenW(CSzFile *p, const WCHAR *name) { return File_OpenW(p, name, 0); } in InFile_OpenW()
75 WRes OutFile_OpenW(CSzFile *p, const WCHAR *name) { return File_OpenW(p, name, 1); } in OutFile_OpenW()
78 WRes File_Close(CSzFile *p) in File_Close()
99 WRes File_Read(CSzFile *p, void *data, size_t *size) in File_Read()
134 WRes File_Write(CSzFile *p, const void *data, size_t *size) in File_Write()
169 WRes File_Seek(CSzFile *p, Int64 *pos, ESzSeek origin) in File_Seek()
[all …]
DMtDec.c83 static WRes ArEvent_OptCreate_And_Reset(CEvent *p) in ArEvent_OptCreate_And_Reset()
106 static WRes MtDecThread_CreateEvents(CMtDecThread *t) in MtDecThread_CreateEvents()
108 WRes wres = ArEvent_OptCreate_And_Reset(&t->canWrite); in MtDecThread_CreateEvents()
121 WRes wres = MtDecThread_CreateEvents(t); in MtDecThread_CreateAndStart()
263 static WRes ThreadFunc2(CMtDecThread *t) in ThreadFunc2()
839 WRes res; in ThreadFunc1()
1093 WRes wres; in MtDec_Code()
1094 WRes sres; in MtDec_Code()
D7zTypes.h49 typedef unsigned WRes; typedef
54 typedef int WRes; typedef
DMtCoder.c39 static WRes ArEvent_OptCreate_And_Reset(CEvent *p) in ArEvent_OptCreate_And_Reset()
52 WRes wres = ArEvent_OptCreate_And_Reset(&t->startEvent); in MtCoderThread_CreateAndStart()
580 WRes wres = Event_Wait(&p->finishedEvent); in MtCoder_Code()
DMtDec.h144 WRes exitThreadWRes;
/external/lzma/CPP/Windows/
DSynchronization.h26 WRes Close() { return Event_Close(&_object); } in Close()
28WRes Create(bool manualReset, bool initiallyOwn, LPCTSTR name = NULL, LPSECURITY_ATTRIBUTES sa = N…
35 WRes Open(DWORD desiredAccess, bool inheritHandle, LPCTSTR name) in Open()
44 WRes Set() { return Event_Set(&_object); } in Set()
46 WRes Reset() { return Event_Reset(&_object); } in Reset()
47 WRes Lock() { return Event_Wait(&_object); } in Lock()
53 WRes Create(bool initiallyOwn = false)
57 WRes CreateIfNotCreated() in CreateIfNotCreated()
64 WRes CreateWithName(bool initiallyOwn, LPCTSTR name) in CreateWithName()
74 WRes Create() in Create()
[all …]
DThread.h19 WRes Close() { return Thread_Close(&thread); } in Close()
20 WRes Create(THREAD_FUNC_RET_TYPE (THREAD_FUNC_CALL_TYPE *startAddress)(void *), LPVOID parameter) in Create()
22 WRes Wait() { return Thread_Wait(&thread); } in Wait()
DFileMapping.h15 WRes Create(DWORD protect, UInt64 maxSize, LPCTSTR name) in Create()
21 WRes Open(DWORD in Open()
28 WRes res = Create(PAGE_READONLY, 0, name); in Open()
/external/u-boot/lib/lzma/
DTypes.h34 typedef DWORD WRes; typedef
36 typedef int WRes; typedef
/external/lzma/C/Util/7z/
D7zMain.c201 static WRes MyCreateDir(const UInt16 *name) in MyCreateDir()
210 WRes res; in MyCreateDir()
227 static WRes OutFile_OpenUtf16(CSzFile *p, const UInt16 *name) in OutFile_OpenUtf16()
233 WRes res; in OutFile_OpenUtf16()
/external/lzma/CPP/7zip/Common/
DVirtThread.h18 WRes Create();
DVirtThread.cpp20 WRes CVirtThread::Create() in Create()
DStreamBinder.h37 WRes CreateEvents();
DStreamBinder.cpp41 WRes CStreamBinder::CreateEvents() in CreateEvents()
/external/lzma/C/Util/SfxSetup/
DSfxSetup.c117 static WRes MyCreateDir(const WCHAR *name) in MyCreateDir()
177 static WRes RemoveDirWithSubItems(WCHAR *path) in RemoveDirWithSubItems()
181 WRes res = 0; in RemoveDirWithSubItems()
/external/lzma/CPP/7zip/UI/FileManager/
DProgressDialog2.cpp945 WRes res2 = WaitForMultipleObjects(ARRAY_SIZE(h), h, FALSE, kCreateDelay); in Create()