mutex: refactored the interface to code to return a Mutex* handle
This commit is contained in:
parent
978e1d4653
commit
eb537c560a
4 changed files with 16 additions and 5 deletions
|
@ -21,7 +21,8 @@ void Initialize(Service::Interface* self) {
|
|||
void GetLockHandle(Service::Interface* self) {
|
||||
u32* cmd_buff = Service::GetCommandBuffer();
|
||||
u32 flags = cmd_buff[1]; // TODO(bunnei): Figure out the purpose of the flag field
|
||||
cmd_buff[1] = Kernel::CreateMutex(cmd_buff[5], false);
|
||||
cmd_buff[1] = 0; // No error
|
||||
cmd_buff[5] = Kernel::CreateMutex(false);
|
||||
}
|
||||
|
||||
const Interface::FunctionInfo FunctionTable[] = {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue