Sign in Join

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

Mailing lists / lazarus / 2016-06

Can tiOPF handle multi thread programming easily?

2 messages · 2 people ·

Reply by email Subscribe to this list Your subscription

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

Graeme Geldenhuys
to Dennis
Dennis wrote
Just heard compliments on tiOPF and wonder how it handles multi thread programming.

What exactly would you like to accomplish?

tiOPF has some thread classes, thread list etc which it uses internally and can be used by your code too.

Some thread usage by tiOPF:
* The tiLog descendants run in a separate thread so logging doesn't slow down the actual application.
* There is a thread based progress dialog that can monitor progress of multiple running threads and report the state of completion via a progressbar per thread
* It allows multi-threaded DB Access.
etc.

tiOPF doesn't spoon-feed the developer, so for some tasks you still need to write the appropriate thread-safe code. But again, it boils down to what you actually want to accomplish with multi-threaded programming.

Regards,
Graeme

fpGUI Toolkit - a cross-platform GUI toolkit using Free Pascal http://fpgui.sourceforge.net/ My public PGP key: http://tinyurl.com/graeme-pgp

Reply by email