Sign in Join

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

Mailing lists / fpc-pascal / 2014-10

fpGUI Thread-safe

6 messages · 4 people · –

Reply by email Subscribe to this list Your subscription

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

Graeme Geldenhuys
to Brian
Brian wrote
Is fpGUI running under X11 thread-safe?

No the toolkit itself is not thread-safe, just like pretty much all GUI toolkits I know. Saying that, you can obviously develop multi-threaded applications with fpGUI or any other toolkit.

Regards, - Graeme -

Reply by email

fredvs
to Brian: Is fpGUI running under X11 thread-safe? Thanks Brian View this message in context:…

i use lot of (complicated) threads with fpGUI => works perfect and no problems...

I even have done hard-core test.

The only thing that i noticed is when using synchronize() with fpc < 2.7.1 => i have better synchronization with fpGUI-build-in postmessage().

If queue() (fpc >= 2.7.1) is used => absolutely perfect synchronization.

Fred.

-----
Many thanks ;-)

View this message in context: http://free-pascal-general.1045716.n5.nabble.com/fpGUI-Thread-safe-tp5720361p5720362.html Sent from the Free Pascal - General mailing list .

Reply by email

Michael Schnell
to Graeme Geldenhuys: No the toolkit itself is not thread-safe, just like pretty much all GUI toolkits I know.…
Graeme Geldenhuys wrote
just like pretty much all GUI toolkits I know.

AFAIK, in fact pretty much all GUI toolkits are not thread save in a sense of "simply use any function from any thread you like", but with most of them it should be possible to have them create windows and associate a thread to such a window.

Of course this is a rather uncommon way of constructing GUI applications (but I once did some research on this as I did had use for that). Hence the LCL does not support it.

-Michael

Reply by email