Hi, I worked a bit on the qt example which is part of hpx: https://github.com/neundorf/hpx/tree/ModifiedQtExample/examples/qt
I changed it so that it is now a "normal" Qt application which also uses HPX, instead of an HPX application wich also uses Qt. IOW, it now has a normal main, and the HPX thread pool is started on a button click via hpx_start(). The HPX threads now use QEvents (via postEvent()) to get information into the Qt widgets. All the HPX code is now encapsulated in a QObject, which the actual application can use without any HPX code, i.e. simple function calls and Qt signals. Please have a look and comment. I think this is an easier way to use HPX from a Qt application compared to the previous version. Please also have a look whether I'm using hpx_start() correctly and whether the way I start and stop the HPX "mainloop" (basically just waiting for an HPX condition variableI) is correct. I'm also not sure about the number of threads in the threadpool. I thought I would get automatically as many threads as I have cores, but without command line parameters I got only one thread (on a 4 core CPU). Using command line parameters (--hpx:threads 4) works. Is this as it is intended or should I get the "correct" number of threads automatically ? This is not yet a pull request. I know before that I have to have proper commit messages and no useless commits I guess. Alex _______________________________________________ hpx-users mailing list [email protected] https://mail.cct.lsu.edu/mailman/listinfo/hpx-users
