mirror of https://github.com/red-prig/fpPS4.git
pthread_attr_getschedpolicy
This commit is contained in:
parent
713f38ac3a
commit
5ad0da7e64
|
@ -1219,6 +1219,9 @@ begin
|
||||||
lib^.set_proc($25AACC232F242846,@ps4_pthread_attr_setschedpolicy);
|
lib^.set_proc($25AACC232F242846,@ps4_pthread_attr_setschedpolicy);
|
||||||
lib^.set_proc($E3E87D133C0A1782,@ps4_scePthreadAttrSetschedpolicy);
|
lib^.set_proc($E3E87D133C0A1782,@ps4_scePthreadAttrSetschedpolicy);
|
||||||
|
|
||||||
|
lib^.set_proc($46D2D157FA414D36,@ps4_pthread_attr_getschedpolicy);
|
||||||
|
lib^.set_proc($34CC8843D5A059B5,@ps4_scePthreadAttrGetschedpolicy);
|
||||||
|
|
||||||
lib^.set_proc($7AE291826D159F63,@ps4_pthread_attr_setschedparam);
|
lib^.set_proc($7AE291826D159F63,@ps4_pthread_attr_setschedparam);
|
||||||
lib^.set_proc($0F3112F61405E1FE,@ps4_scePthreadAttrSetschedparam);
|
lib^.set_proc($0F3112F61405E1FE,@ps4_scePthreadAttrSetschedparam);
|
||||||
|
|
||||||
|
|
|
@ -45,6 +45,9 @@ function ps4_scePthreadAttrSetdetachstate(pAttr:p_pthread_attr_t;detachstate:In
|
||||||
function ps4_pthread_attr_setschedpolicy(pAttr:p_pthread_attr_t;policy:Integer):Integer; SysV_ABI_CDecl;
|
function ps4_pthread_attr_setschedpolicy(pAttr:p_pthread_attr_t;policy:Integer):Integer; SysV_ABI_CDecl;
|
||||||
function ps4_scePthreadAttrSetschedpolicy(pAttr:p_pthread_attr_t;policy:Integer):Integer; SysV_ABI_CDecl;
|
function ps4_scePthreadAttrSetschedpolicy(pAttr:p_pthread_attr_t;policy:Integer):Integer; SysV_ABI_CDecl;
|
||||||
|
|
||||||
|
function ps4_pthread_attr_getschedpolicy(pAttr:p_pthread_attr_t;policy:PInteger):Integer; SysV_ABI_CDecl;
|
||||||
|
function ps4_scePthreadAttrGetschedpolicy(pAttr:p_pthread_attr_t;policy:PInteger):Integer; SysV_ABI_CDecl;
|
||||||
|
|
||||||
function ps4_pthread_attr_setschedparam(pAttr:p_pthread_attr_t;param:PInteger):Integer; SysV_ABI_CDecl;
|
function ps4_pthread_attr_setschedparam(pAttr:p_pthread_attr_t;param:PInteger):Integer; SysV_ABI_CDecl;
|
||||||
function ps4_scePthreadAttrSetschedparam(pAttr:p_pthread_attr_t;param:PInteger):Integer; SysV_ABI_CDecl;
|
function ps4_scePthreadAttrSetschedparam(pAttr:p_pthread_attr_t;param:PInteger):Integer; SysV_ABI_CDecl;
|
||||||
|
|
||||||
|
@ -162,6 +165,20 @@ begin
|
||||||
Result:=px2sce(ps4_pthread_attr_setschedpolicy(pAttr,policy));
|
Result:=px2sce(ps4_pthread_attr_setschedpolicy(pAttr,policy));
|
||||||
end;
|
end;
|
||||||
|
|
||||||
|
function ps4_pthread_attr_getschedpolicy(pAttr:p_pthread_attr_t;policy:PInteger):Integer; SysV_ABI_CDecl;
|
||||||
|
begin
|
||||||
|
Result:=EINVAL;
|
||||||
|
if (pAttr=nil) or (policy=nil) then Exit;
|
||||||
|
if (pAttr^=nil) then Exit;
|
||||||
|
policy^:=pAttr^^.sched_policy;
|
||||||
|
Result:=0;
|
||||||
|
end;
|
||||||
|
|
||||||
|
function ps4_scePthreadAttrGetschedpolicy(pAttr:p_pthread_attr_t;policy:PInteger):Integer; SysV_ABI_CDecl;
|
||||||
|
begin
|
||||||
|
Result:=px2sce(ps4_pthread_attr_getschedpolicy(pAttr,policy));
|
||||||
|
end;
|
||||||
|
|
||||||
function ps4_pthread_attr_setschedparam(pAttr:p_pthread_attr_t;param:PInteger):Integer; SysV_ABI_CDecl;
|
function ps4_pthread_attr_setschedparam(pAttr:p_pthread_attr_t;param:PInteger):Integer; SysV_ABI_CDecl;
|
||||||
var
|
var
|
||||||
policy:Integer;
|
policy:Integer;
|
||||||
|
|
Loading…
Reference in New Issue