<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
</head>
<body>
<div class="moz-cite-prefix">On 25.09.2020 03:30, Martin via
fpc-devel wrote:<br>
</div>
<blockquote type="cite"
cite="mid:dc28de82-5fac-7dfb-226b-25972273812e@mfriebe.de">
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
Wath is in the following indented?<br>
<br>
The doc says <a class="moz-txt-link-freetext"
href="https://www.freepascal.org/docs-html/rtl/classes/tthread.removequeuedevents.html"
moz-do-not-send="true">https://www.freepascal.org/docs-html/rtl/classes/tthread.removequeuedevents.html</a><br>
<blockquote type="cite"> all calls to the given method .... are
removed. </blockquote>
<br>
However there may be more than one way to read this.<br>
<br>
<tt><span class="code">aMethod<span class="sym">: </span><a
href="https://www.freepascal.org/docs-html/rtl/classes/tthreadmethod.html"
moz-do-not-send="true">TThreadMethod</a><br>
is "procedure of object"<br>
<br>
The method "aMethod" (which is what is given) therefore
consists of proc-address and instance-address.<br>
<br>
However the code actually removes all methods at proc-address,
regardless of the instance.<br>
<br>
Does the "</span></tt><tt><span class="code">given method"
mean:<br>
1) "aMethod" as passed in as parameter, consisting of proc and
instance<br>
2) "method of the class" extracted from "aMethod"</span></tt></blockquote>
<p>It's a Delphi-compatibility method:
<a class="moz-txt-link-freetext" href="http://docwiki.embarcadero.com/Libraries/Sydney/en/System.Classes.TThread.RemoveQueuedEvents">http://docwiki.embarcadero.com/Libraries/Sydney/en/System.Classes.TThread.RemoveQueuedEvents</a></p>
<p>The Delphi docs are not much more help here but FPC should have
the same behavior. Please check the Delphi behavior and clarify
the docs.<br>
</p>
<p>Thanks, Ondrej<br>
</p>
</body>
</html>