Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / fpc-pascal / 2011-03

TThread.Resume

7 messages · 4 people · –

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

Mattias Gaertner

Hi all,

TThread.Resume is marked deprecated. Where is the comment or documentation what to use now?

Mattias

Mark Morgan Lloyd
to Jonas Maebe: http://wiki.freepascal.org/User_Changes_Trunk#TThread.Suspend_and_TThread.Resume_are_depre…
Jonas Maebe wrote 5 lines
On 10 Mar 2011, at 19:27, Mattias Gaertner wrote: > TThread.Resume is marked deprecated. Where is the comment or documentation what to use now? http://wiki.freepascal.org/User_Changes_Trunk#TThread.Suspend_and_TThread.Resume_are_deprecated

[Reads] Wasn't there a race condition when a thread was created suspended? Was that fixed?

Mark Morgan Lloyd markMLl .AT. telemetry.co .DOT. uk [Opinions above are the author's, not those of his employers or colleagues]
Jonas Maebe
to Mark Morgan Lloyd
Mark Morgan Lloyd wrote
[Reads] Wasn't there a race condition when a thread was created suspended? Was that fixed?

There was a race condition when a thread was created in a non-suspended stated, and if it terminated before the constructor finished running. This has been fixed: http://bugs.freepascal.org/view.php?id=16884

I'm not aware of any race conditions when creating a thread in suspended state.

Jonas

Mark Morgan Lloyd
to Jonas Maebe
Jonas Maebe wrote 7 lines
On 10 Mar 2011, at 22:33, Mark Morgan Lloyd wrote: > [Reads] Wasn't there a race condition when a thread was created suspended? Was that fixed? There was a race condition when a thread was created in a non-suspended stated, and if it terminated before the constructor finished running. This has been fixed: http://bugs.freepascal.org/view.php?id=16884 I'm not aware of any race conditions when creating a thread in suspended state.

[Checks] That's the one I was thinking of. Sorry, just checking.

Mark Morgan Lloyd markMLl .AT. telemetry.co .DOT. uk [Opinions above are the author's, not those of his employers or colleagues]
Marco van de Voort
to Mattias Gaertner: On Thu, 10 Mar 2011 19:38:11 +0100 Thanks. Can this be added to the fpdoc documentation…

In our previous episode, Mattias Gaertner said:

Show quoted text 8 lines
> On 10 Mar 2011, at 19:27, Mattias Gaertner wrote: > > > TThread.Resume is marked deprecated. Where is the comment or documentation what to use now? > > http://wiki.freepascal.org/User_Changes_Trunk#TThread.Suspend_and_TThread.Resume_are_deprecated Can this be added to the fpdoc documentation and/or as comment to the source?

(This change is in 2.4.4 too btw. The 2.4.4 points haven't been removed from user changes trunk yet.

http://wiki.freepascal.org/User_Changes_2.4.4

has been updated though)