/external/lzma/C/ |
Threads.c | 12 static WRes GetError()
15 return (res) ? (WRes)(res) : 1;
18 WRes HandleToWRes(HANDLE h) { return (h != 0) ? 0 : GetError(); }
19 WRes BOOLToWRes(BOOL v) { return v ? 0 : GetError(); }
21 WRes HandlePtr_Close(HANDLE *p)
30 WRes Handle_WaitObject(HANDLE h) { return (WRes)WaitForSingleObject(h, INFINITE); }
32 WRes Thread_Create(CThread *p, THREAD_FUNC_TYPE func, LPVOID param)
52 WRes Event_Create(CEvent *p, BOOL manualReset, int signaled)
58 WRes Event_Set(CEvent *p) { return BOOLToWRes(SetEvent(*p)); } [all...] |
Threads.h | 15 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);
55 WRes Semaphore_Create(CSemaphore *p, UInt32 initCount, UInt32 maxCount); [all...] |
7zFile.h | 34 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);
|
MtCoder.h | 25 WRes LoopThread_Create(CLoopThread *p);
26 WRes LoopThread_StopAndWait(CLoopThread *p);
27 WRes LoopThread_StartSubThread(CLoopThread *p);
28 WRes LoopThread_WaitSubThread(CLoopThread *p);
|
7zFile.c | 40 static WRes File_Open(CSzFile *p, const char *name, int writeMode)
60 WRes InFile_Open(CSzFile *p, const char *name) { return File_Open(p, name, 0); }
61 WRes OutFile_Open(CSzFile *p, const char *name) { return File_Open(p, name, 1); }
65 static WRes File_OpenW(CSzFile *p, const WCHAR *name, int writeMode)
74 WRes InFile_OpenW(CSzFile *p, const WCHAR *name) { return File_OpenW(p, name, 0); }
75 WRes OutFile_OpenW(CSzFile *p, const WCHAR *name) { return File_OpenW(p, name, 1); }
78 WRes File_Close(CSzFile *p)
99 WRes File_Read(CSzFile *p, void *data, size_t *size)
134 WRes File_Write(CSzFile *p, const void *data, size_t *size)
169 WRes File_Seek(CSzFile *p, Int64 *pos, ESzSeek origin) [all...] |
7zTypes.h | 46 /* typedef DWORD WRes; */
47 typedef unsigned WRes;
49 typedef int WRes;
|
MtCoder.c | 39 WRes LoopThread_Create(CLoopThread *p)
47 WRes LoopThread_StopAndWait(CLoopThread *p)
55 WRes LoopThread_StartSubThread(CLoopThread *p) { return Event_Set(&p->startEvent); }
56 WRes LoopThread_WaitSubThread(CLoopThread *p) { return Event_Wait(&p->finishedEvent); }
|
/external/lzma/CPP/Windows/ |
Synchronization.h | 26 WRes Close() { return Event_Close(&_object); }
28 WRes Create(bool manualReset, bool initiallyOwn, LPCTSTR name = NULL, LPSECURITY_ATTRIBUTES sa = NULL)
35 WRes Open(DWORD desiredAccess, bool inheritHandle, LPCTSTR name)
44 WRes Set() { return Event_Set(&_object); }
46 WRes Reset() { return Event_Reset(&_object); }
47 WRes Lock() { return Event_Wait(&_object); }
53 WRes Create(bool initiallyOwn = false)
57 WRes CreateIfNotCreated()
64 WRes CreateWithName(bool initiallyOwn, LPCTSTR name)
74 WRes Create() [all...] |
Thread.h | 19 WRes Close() { return Thread_Close(&thread); }
20 WRes Create(THREAD_FUNC_RET_TYPE (THREAD_FUNC_CALL_TYPE *startAddress)(void *), LPVOID parameter)
22 WRes Wait() { return Thread_Wait(&thread); }
|
FileMapping.h | 15 WRes Create(DWORD protect, UInt64 maxSize, LPCTSTR name)
21 WRes Open(DWORD
28 WRes res = Create(PAGE_READONLY, 0, name);
|
/external/lzma/CPP/7zip/Common/ |
VirtThread.h | 18 WRes Create();
|
StreamBinder.h | 21 WRes CreateEvents();
|
VirtThread.cpp | 20 WRes CVirtThread::Create()
|
StreamBinder.cpp | 41 WRes CStreamBinder::CreateEvents()
|
/external/lzma/C/Util/7z/ |
7zMain.c | 147 static WRes MyCreateDir(const UInt16 *name)
156 WRes res;
173 static WRes OutFile_OpenUtf16(CSzFile *p, const UInt16 *name)
179 WRes res;
|
/external/lzma/C/Util/SfxSetup/ |
SfxSetup.c | 114 static WRes MyCreateDir(const WCHAR *name)
174 static WRes RemoveDirWithSubItems(WCHAR *path)
178 WRes res = 0;
|
/external/lzma/CPP/7zip/UI/FileManager/ |
ProgressDialog2.cpp | 923 WRes res = WaitForMultipleObjects(ARRAY_SIZE(h), h, FALSE, kCreateDelay);
|