mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-09-27 17:19:14 +02:00
+ add function reference suitable overload of TThread.ForceQueue()
This commit is contained in:
parent
34738e1db9
commit
42472aac89
@ -683,6 +683,13 @@ begin
|
||||
InternalQueue(aThread, aMethod, True);
|
||||
end;
|
||||
|
||||
{$ifdef FPC_HAS_REFERENCE_PROCEDURE}
|
||||
class procedure TThread.ForceQueue(aThread: TThread; aMethod: TThreadProcedure); static;
|
||||
begin
|
||||
InternalQueue(aThread, aMethod, True);
|
||||
end;
|
||||
{$endif}
|
||||
|
||||
class procedure TThread.RemoveQueuedEvents(aThread: TThread; aMethod: TThreadMethod);
|
||||
var
|
||||
entry, tmpentry, lastentry: PThreadQueueEntry;
|
||||
|
@ -2009,6 +2009,9 @@ type
|
||||
class procedure Queue(aThread: TThread; AProcedure : TThreadProcedure); static;
|
||||
{$endif}
|
||||
class procedure ForceQueue(aThread: TThread; aMethod: TThreadMethod); inline; static;
|
||||
{$ifdef FPC_HAS_REFERENCE_PROCEDURE}
|
||||
class procedure ForceQueue(aThread: TThread; aMethod: TThreadProcedure); inline; static;
|
||||
{$endif}
|
||||
class procedure RemoveQueuedEvents(aThread: TThread; aMethod: TThreadMethod); static;
|
||||
class procedure RemoveQueuedEvents(aMethod: TThreadMethod); static;
|
||||
class procedure RemoveQueuedEvents(aThread: TThread); static;
|
||||
|
Loading…
Reference in New Issue
Block a user