mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-09-10 12:09:25 +02:00
* moved fpc_threadvar_relocate_proc from systemh.inc to thread.inc
and gave it the correct type (TRelocateThreadVarHandler) * changed parameter type of InitThread also to TRelocateThreadVarHandler git-svn-id: trunk@23130 -
This commit is contained in:
parent
2ea6979277
commit
14b1c8a99c
@ -539,8 +539,6 @@ const
|
||||
var
|
||||
{$endif FPC_HAS_FEATURE_DYNLIBS}
|
||||
IsConsole : boolean = false; public name 'operatingsystem_isconsole';
|
||||
{ Threading support }
|
||||
fpc_threadvar_relocate_proc : pointer; public name 'FPC_THREADVAR_RELOCATE';
|
||||
|
||||
DefaultSystemCodePage,
|
||||
DefaultUnicodeCodePage,
|
||||
|
@ -16,6 +16,7 @@
|
||||
|
||||
Var
|
||||
CurrentTM : TThreadManager;
|
||||
fpc_threadvar_relocate_proc : TRelocateThreadVarHandler; public name 'FPC_THREADVAR_RELOCATE';
|
||||
|
||||
{*****************************************************************************
|
||||
Threadvar initialization
|
||||
|
@ -105,7 +105,7 @@ Function SetThreadManager(Const NewTM : TThreadManager) : Boolean;
|
||||
{$ifndef DISABLE_NO_THREAD_MANAGER}
|
||||
{$endif DISABLE_NO_THREAD_MANAGER}
|
||||
// Needs to be exported, so the manager can call it.
|
||||
procedure InitThreadVars(RelocProc : Pointer);
|
||||
procedure InitThreadVars(RelocProc : TRelocateThreadVarHandler);
|
||||
procedure InitThread(stklen:SizeUInt);
|
||||
procedure DoneThread;
|
||||
|
||||
|
@ -100,7 +100,7 @@ begin
|
||||
end;
|
||||
end;
|
||||
|
||||
procedure InitThreadVars(RelocProc : Pointer);
|
||||
procedure InitThreadVars(RelocProc : TRelocateThreadVarHandler);
|
||||
|
||||
begin
|
||||
{ initialize threadvars }
|
||||
|
@ -530,8 +530,6 @@ const
|
||||
var
|
||||
{$endif FPC_HAS_FEATURE_DYNLIBS}
|
||||
IsConsole : boolean = false; public name 'operatingsystem_isconsole';
|
||||
{ Threading support }
|
||||
fpc_threadvar_relocate_proc : pointer; public name 'FPC_THREADVAR_RELOCATE';
|
||||
|
||||
DefaultSystemCodePage,
|
||||
DefaultUnicodeCodePage,
|
||||
|
Loading…
Reference in New Issue
Block a user