mirror of https://github.com/red-prig/fpPS4.git
pthread_rename_np
This commit is contained in:
parent
4b7e4d37ec
commit
53f69f8d20
|
@ -1256,6 +1256,8 @@ begin
|
|||
lib^.set_proc($108FF9FE396AD9D1,@ps4_scePthreadGetthreadid);
|
||||
|
||||
lib^.set_proc($1E8C3B07C39EB7A9,@ps4_scePthreadGetname);
|
||||
|
||||
lib^.set_proc($F6FC8FE99EDBAB37,@ps4_pthread_rename_np);
|
||||
lib^.set_proc($181518EF2C1D50B1,@ps4_scePthreadRename);
|
||||
|
||||
lib^.set_proc($6EDDC24C12A61B22,@ps4_scePthreadSetaffinity);
|
||||
|
|
|
@ -65,6 +65,8 @@ function ps4_getpid():Integer; SysV_ABI_CDecl;
|
|||
function ps4_scePthreadGetthreadid():Integer; SysV_ABI_CDecl;
|
||||
|
||||
function ps4_scePthreadGetname(_pthread:pthread;name:Pchar):Integer; SysV_ABI_CDecl;
|
||||
|
||||
function ps4_pthread_rename_np(_pthread:pthread;name:Pchar):Integer; SysV_ABI_CDecl;
|
||||
function ps4_scePthreadRename(_pthread:pthread;name:Pchar):Integer; SysV_ABI_CDecl;
|
||||
|
||||
function ps4_scePthreadSetaffinity(_pthread:pthread;mask:QWORD):Integer; SysV_ABI_CDecl;
|
||||
|
@ -785,13 +787,18 @@ begin
|
|||
Result:=0;
|
||||
end;
|
||||
|
||||
function ps4_scePthreadRename(_pthread:pthread;name:Pchar):Integer; SysV_ABI_CDecl;
|
||||
function ps4_pthread_rename_np(_pthread:pthread;name:Pchar):Integer; SysV_ABI_CDecl;
|
||||
begin
|
||||
if (_pthread=nil) or (name=nil) then Exit(SCE_KERNEL_ERROR_EINVAL);
|
||||
if (_pthread=nil) or (name=nil) then Exit(EINVAL);
|
||||
MoveChar0(name^,_pthread^.name,32);
|
||||
Result:=0;
|
||||
end;
|
||||
|
||||
function ps4_scePthreadRename(_pthread:pthread;name:Pchar):Integer; SysV_ABI_CDecl;
|
||||
begin
|
||||
Result:=px2sce(ps4_pthread_rename_np(_pthread,name));
|
||||
end;
|
||||
|
||||
function ps4_scePthreadSetaffinity(_pthread:pthread;mask:QWORD):Integer; SysV_ABI_CDecl;
|
||||
begin
|
||||
if (_pthread=nil) then Exit(SCE_KERNEL_ERROR_ESRCH);
|
||||
|
|
Loading…
Reference in New Issue