I’ve been wrestling with ofThreads for a few days, and was wondering if anyone has a working example of using them in an app. The example on the doc page (http://www.openframeworks.cc/documentation/utils/ofThread.html) appears to have a number of errors including scope and syntax. I tried to amend them with compiler feedback, but am still having issues. Would love it if anyone has a working example!
there’s an example in the OF download, in examples/utils/threadExample
i’ve also just fixed the example in the docs, the only thing wrong was that the thread variable should be declared in the .h file of your application instead of the setup function. it should be online in the docs in a few minutes
I used ofThreads for my ofxDokuApp. Maybe it can also give you some clues.
Great, thanks for pointing me in the right direction! Much appreciated!