-
Notifications
You must be signed in to change notification settings - Fork 59
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Enable FLTK graphics toolkit on macOS if not multi-threaded (bug #664…
…82). * libinterp/octave.h (octave::application): Add new member functions "multi_threaded" and "is_multi_threaded". The latter can be used to query if Octave uses multiple threads (e.g., for the interpreter and various QThreads for the GUI). * libinterp/octave.cc (F__is_multi_threaded__): New (internal) function to query whether Octave is running with multiple threads from .m-file code. * libgui/src/qt-application.h (octave::qt_application::multi_threaded): Overload new member function. * libinterp/dldfcn/__init_fltk__.cc (PKG_ADD): Register the graphics toolkit "fltk" on macOS unless Octave is running with multiple threads (QThread using GUI).
- Loading branch information
Showing
4 changed files
with
33 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters