small revisions

This commit is contained in:
polos 2018-02-05 12:10:32 +01:00
parent 0f0cbedb86
commit caae249b4f
3 changed files with 4 additions and 3 deletions

View file

@ -2963,6 +2963,7 @@ cl_object qrun_in_gui_thread2(cl_object l_function_or_closure, cl_object l_block
/// alias: qrun
/// Runs <code>function</code> in GUI thread while (by default) blocking the calling thread (if called from main thread, <code>function</code> will simply be called directly).<br>This is needed to run GUI code from ECL threads other than the main thread.<br>Returns <code>T</code> on success.<br><br>There are 2 reasons to always wrap any EQL function like this, if called from another ECL thread:<ul><li>Qt GUI methods always need to run in the GUI thread<li>EQL functions are not designed to be reentrant (not needed for GUI code)</ul>See also macro <code>qrun*</code>.
/// (qrun 'update-view-data)
ecl_process_env()->nvalues = 1;
if(l_function_or_closure != Cnil) {
QObject o;
if(o.thread() == QApplication::instance()->thread()) {

View file

@ -7,8 +7,8 @@ SUBDIRS = help \
quick \
sql \
svg \
# webengine \
webkit
webengine \
# webkit
# -----------------------------------------------------
TEMPLATE = subdirs

View file

@ -1,7 +1,7 @@
QT += widgets printsupport uitools
TEMPLATE = app
CONFIG += no_keywords release
INCLUDEPATH += ../src /usr/local/include
INCLUDEPATH += /usr/local/include
LIBS += -lecl -leql5 -L.. -L/usr/local/lib
TARGET = eql5
DESTDIR = ../