mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-12-16 05:00:46 +01:00
gtk1+2 intf: added comment about wake up gtk main loop from another threa
git-svn-id: trunk@16329 -
This commit is contained in:
parent
5e37b07ce5
commit
8acfc91bed
@ -7350,6 +7350,13 @@ begin
|
||||
|
||||
if GetThreadID<>MainThreadID then begin
|
||||
// awake gtk loop
|
||||
// when the main thread is currently processing messages it will process
|
||||
// fMessageQueue.
|
||||
// But when the main thread is waiting for the next gtk message it will
|
||||
// wait for the next external event before processing fMessageQueue.
|
||||
// A g_idle_add can only be used if glib multithreading has been enabled
|
||||
// ToDo: Find out what we loose when enabling multithreading
|
||||
// or find another way to wake up the gtk loop
|
||||
DebugLn(['TGtkWidgetSet.PostMessage ToDo: wake up gtk']);
|
||||
end;
|
||||
finally
|
||||
|
||||
Loading…
Reference in New Issue
Block a user