Skip to content

Commit

Permalink
Extend advanced.dox multithreading to add additional caveats
Browse files Browse the repository at this point in the history
about the use of show() and hide() from child threads, based
on issues reported in fltk.general with tooltip windows
causing issues.

git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10476 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
  • Loading branch information
imaclmaca committed Dec 1, 2014
1 parent 0fdb271 commit 596fd27
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion documentation/src/advanced.dox
Expand Up @@ -82,7 +82,14 @@ threads on all operating systems:

\li Don't \p show() or \p hide() anything that contains
widgets derived from Fl_Window, including dialogs, file
choosers, subwindows or those using Fl_Gl_Window.
choosers, subwindows or those using Fl_Gl_Window. Note that
this constraint may also apply to non-window widgets that
have tooltips, since the tooltip will contain a Fl_Window
object. In general, it is advised \b not to call \p show()
or \p hide() on any widget from the context of a
non-main thread (instead use the Fl_Awake_Handler function
variant of Fl::awake to have the main thread show or hide
the widget on behalf of the child thread.)

\li Don't call Fl::run(), Fl::wait(), Fl::flush() or any
related methods that will handle system messages
Expand Down

0 comments on commit 596fd27

Please sign in to comment.