Recent

Author Topic: Thread Suspend and Resume is deprecated?  (Read 272 times)

process_1

  • Guest
Thread Suspend and Resume is deprecated?
« on: July 18, 2020, 08:14:36 pm »
I can fadely recall that long time ago Suspend and Resume functinality in FPC was deprecated/non working on linux. What I did is to use extra variable in order to mimic suspend/resume functionality in threads.

What is the current state of this?
« Last Edit: July 18, 2020, 08:16:41 pm by process_1 »


Fred vS

  • Hero Member
  • *****
  • Posts: 1841
    • StrumPract is the musicians best friend
Re: Thread Suspend and Resume is deprecated?
« Reply #2 on: July 18, 2020, 08:47:54 pm »
You may use also RTLevent.
https://wiki.lazarus.freepascal.org/Threads#RTLevent

It works perfectly for pause and resume threads without any delay and is cross-platform compatible.
I use Lazarus 2.0.6 32/64 and FPC 3.2.0 32/64 on Debian 10.2 64 bit, Windows 10, Windows 7 32/64, Windows XP 32,  FreeBSD 64 and Mac OS X Snow Leopard 32.
Widgetset: fpGUI, MSEgui, Win32, GTK2, Qt, Carbon.

https://github.com/fredvs
https://gitlab.com/fredvs

 

TinyPortal © 2005-2018