Issue I am attempting to run some fairly simple code in the Visual Studio immediate window. All the code does is read some JSON input, from a file, and uses that to call some other methods, for loading a database
Continue readingTag: multithreading
[SOLVED] Using Multiprocessing in Uvicorn with multiple workers (thread lock)
Issue I am building a API with FastAPI served via uvicorn. The API has endpoints that make use of python multiprocessing lib. An endpoint spawns several Processes for a CPU bound tasks to perform them in parrallel. Here is a
Continue reading[SOLVED] How to set the Thread priority on parallel iteration with standard Java API?
Issue I found in this tutorial a way to iterate in parallel a collection of objects by setting threads priority, but this example uses the Burningwave Core library: is there a way to do the same with the standard Java
Continue reading[SOLVED] PySide6 QThread still freezing main GUI
Issue I am currently trying to implement some threading functionality in my PySide6 GUI application. I followed a tutorial to try to get started (link is here), and I cannot seem to get it to work. Although that tutorial uses
Continue reading[SOLVED] Qt – Transform cv::Mat to QImage in worker thread crashes
Issue Introduction What i want is really simple: I want to start the process of reading a binary file via a button in a main ui thread, let a seperate thread handle the processing including transformation into QImage and return
Continue reading[SOLVED] Qt Create Qquickwindow with Qquickrendercontrol in another thread
Issue I’m developing an application based on qt quick that has 2 windows. One is the Gui and the other one is a non interactive window that receives data from Gui window and runs its own render loop. The goal
Continue reading[SOLVED] How do you wait for `QtConcurrent::run` to finish without thread blocking?
Issue Hey this should be a pretty straightforward question. Simply put: Want to run a function in another thread. Need to wait for the function to finish. Do not want to freeze the thread though while waiting. In other words,
Continue reading[SOLVED] Is it safe for a QObject's thread affinity to be a deleted QThread?
Issue Consider the following code: QThread *thread = nullptr; QObject *object = nullptr; void setup() { QThread *thread = new QThread; QObject *object = new QObject; object->moveToThread(thread); thread->start(); } void cleanup() { thread->exit(0); thread->wait(1000); if (!thread->isFinished()) { // handle error
Continue reading[SOLVED] QT: Run a function as long as button is toggled
Issue I want to implement a GUI that receives messages from an external device. The "advancedReceiveExample" is waiting for messages. Once it has received one, it does stuff with it, saves it and terminates. I want to make my function
Continue reading[SOLVED] How to speed up scraping with Selenium (multiprocessing)
Issue I am trying to scrape a singular data point from a list of urls to dynamically loaded sites. I have implemented a scraper with selenium, but it is too slow. I tried using scrapy but realized scrapy does not
Continue reading