Sign in Join

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

Mailing lists / fpc-pascal / 2006-09

Threading support under FPC

3 messages · 3 people ·

Reply by email Subscribe to this list Your subscription

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

Graeme Geldenhuys

Hi,

How good is the threading support in Free Pascal? I'm using 2.1.1. I haven't used threading before under FPC and am about to revamp an in-house application to support mutliple threads. I don't want to start the app and then find out that there is some major stability issues with threading support. Anybody find issues with FPC's threading support? Any special params that I need to pass to the compiler?

Regards,
- Graeme -

Marco van de Voort
to Graeme Geldenhuys
Show quoted text 7 lines
How good is the threading support in Free Pascal? I'm using 2.1.1. I haven't used threading before under FPC and am about to revamp an in-house application to support mutliple threads. I don't want to start the app and then find out that there is some major stability issues with threading support. Anybody find issues with FPC's threading support? Any special params that I need to pass to the compiler?

- On *nix import cthreads as first unit of your project/mainprogram.
- Indy doesn't work on some platforms, notably FreeBSD. Linux and Windows seem to work. OS X unknown.
- Threadvar's are initialised to the value of the mother program. This can be dangerous for e.g. filevariables. (?)

Пётр Косаревский
Show quoted text 10 lines
Hi, How good is the threading support in Free Pascal? I'm using 2.1.1. I haven't used threading before under FPC and am about to revamp an in-house application to support mutliple threads. I don't want to start the app and then find out that there is some major stability issues with threading support. Anybody find issues with FPC's threading support? Any special params that I need to pass to the compiler? Regards, - Graeme -

If it didn't change recently, thread priority doesn't work under Win32 (you can change the property, but it has no effect). And I was told, it could be possible to use WinAPI SetThreadPriority etc manually. (It appeared that I didn't really need it, so I didn't check it.)