diff options
author | Reiko Asakura | 2021-01-20 14:35:50 -0500 |
---|---|---|
committer | Reiko Asakura | 2021-01-20 14:35:50 -0500 |
commit | 3146cc34a4b86cc9d6c1843ca27c128e67baf23a (patch) | |
tree | 73afa97644dcbd29c1af5414ddafde782f39949c /include/user/kernel/iofilemgr_async.h | |
parent | Remove dupe: iofilemgr (diff) | |
download | vds-libraries-3146cc34a4b86cc9d6c1843ca27c128e67baf23a.tar.gz |
Merge common: iofilemgr
Diffstat (limited to 'include/user/kernel/iofilemgr_async.h')
-rw-r--r-- | include/user/kernel/iofilemgr_async.h | 69 |
1 files changed, 0 insertions, 69 deletions
diff --git a/include/user/kernel/iofilemgr_async.h b/include/user/kernel/iofilemgr_async.h index 21190ee..0c77e66 100644 --- a/include/user/kernel/iofilemgr_async.h +++ b/include/user/kernel/iofilemgr_async.h @@ -17,24 +17,6 @@ extern "C" { */ /** - * Cancel an asynchronous operation. - * - * @param opHandle - The operation handle to perform cancel on. - * - * @return < 0 on error. If operation has been canceled(finished) already, returns 0x80010002 - */ -int sceIoCancel(SceUID opHandle); - -/** - * Complete an asynchronous operation. - * - * @param opHandle - The operation handle to complete. - * - * @return < 0 on error. - */ -int sceIoComplete(SceUID opHandle); - -/** * Complete multiple asynchronous operations. * * @param asyncParam - Array of ::SceIoAsyncParam representing IO operations to complete. retVal member must have opHandle value assigned to it. @@ -45,57 +27,6 @@ int sceIoComplete(SceUID opHandle); */ int sceIoCompleteMultiple(SceIoAsyncParam* asyncParam, int numOfParam, int* numOfCompleted); -/** - * Wait until asynchronous operation has been finished. - * - * @param opHandle - The operation handle to wait for. - * - * @return < 0 on error. - */ -inline -int sceIoWaitAsync(SceUID opHandle) -{ - int ret = sceKernelWaitEvent(opHandle, 1, NULL, NULL, NULL); - if (ret == 0) - return sceIoComplete(opHandle); - else - return ret; -} - -/** - * Wait until asynchronous operation has been finished with callbacks. - * - * @param opHandle - The operation handle to wait for. - * - * @return < 0 on error. - */ -inline -int sceIoWaitAsyncCB(SceUID opHandle) -{ - int ret = sceKernelWaitEventCB(opHandle, 1, NULL, NULL, NULL); - if (ret == 0) - return sceIoComplete(opHandle); - else - return ret; -} - -/** - * Poll asynchronous operation status. - * - * @param opHandle - The operation handle to poll status for. - * - * @return < 0 on error or if operation is not finished. - */ -inline -int sceIoPollAsync(SceUID opHandle) -{ - int ret = sceKernelPollEvent(opHandle, 1, NULL, NULL); - if (ret == 0) - return sceIoComplete(opHandle); - else - return ret; -} - #ifdef __cplusplus } #endif |