yuzu-fork/src/core/hle
Lioncash 4ef2af8c98 svc: Implement svcCreateResourceLimit()
This function simply creates a ResourceLimit instance and attempts to
create a handle for it within the current process' handle table. If the
kernal fails to either create the ResourceLimit instance or create a
handle for the ResourceLimit instance, it returns a failure code
(OUT_OF_RESOURCE, and HANDLE_TABLE_FULL respectively). Finally, it exits
by providing the output parameter with the handle value for the
ResourceLimit instance and returning that it was successful.

Note: We do not return OUT_OF_RESOURCE because, if yuzu runs out of
available memory, then new will currently throw. We *could* allocate the
kernel instance with std::nothrow, however this would be inconsistent
with how all other kernel objects are currently allocated.
2018-11-26 21:10:31 -05:00
..
kernel svc: Implement svcCreateResourceLimit() 2018-11-26 21:10:31 -05:00
service Merge pull request #1793 from lioncash/ref 2018-11-25 23:04:21 -05:00
ipc.h kernel/errors: Remove now-unused, unnecessary, error codes 2018-10-24 14:58:37 -04:00
ipc_helpers.h hle_ipc: Add member function for querying the existence of a domain header 2018-10-29 23:28:04 -04:00
lock.cpp Fix build on macOS and linux 2018-01-13 22:38:52 +00:00
lock.h Use recursive_mutex instead of mutex to fix #2902 2017-08-29 20:39:55 +12:00
result.h file_sys/errors: Extract FS-related error codes to file_sys/errors.h 2018-11-16 00:13:50 -05:00