mirror of
https://github.com/RPCSX/rpcsx.git
synced 2026-04-05 14:37:08 +00:00
[orbis-kernel][rpcsx-os] POC thr_new implementation (disabled by default)
This commit is contained in:
parent
5bb820084e
commit
7bfa977086
4 changed files with 99 additions and 39 deletions
|
|
@ -94,7 +94,8 @@ orbis::SysResult orbis::sys_evf_create(Thread *thread, ptr<char> name,
|
|||
switch (attrs & (kEvfAttrSingle | kEvfAttrMulti)) {
|
||||
case 0:
|
||||
case kEvfAttrSingle | kEvfAttrMulti:
|
||||
return ErrorCode::INVAL;
|
||||
attrs = (attrs & ~(kEvfAttrSingle | kEvfAttrMulti)) | kEvfAttrSingle;
|
||||
break;
|
||||
|
||||
default:
|
||||
break;
|
||||
|
|
@ -103,7 +104,11 @@ orbis::SysResult orbis::sys_evf_create(Thread *thread, ptr<char> name,
|
|||
switch (attrs & (kEvfAttrThPrio | kEvfAttrThFifo)) {
|
||||
case 0:
|
||||
case kEvfAttrThPrio | kEvfAttrThFifo:
|
||||
return ErrorCode::INVAL;
|
||||
attrs = (attrs & ~(kEvfAttrThPrio | kEvfAttrThFifo)) | kEvfAttrThFifo;
|
||||
break;
|
||||
|
||||
default:
|
||||
break;
|
||||
}
|
||||
|
||||
char _name[32];
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue