Cycling74 / min-devkit

Tools, documentation, and reference implementation of a Max Package built using the Min-API.
MIT License
156 stars 30 forks source link

Question: about threading? #177

Closed omarcostahamido closed 3 years ago

omarcostahamido commented 3 years ago

I have a process that takes some time, like several seconds, involving reading from a file. How can I make it so that Max won't hang while waiting for the results? I read the threading doc on the website, but I am still pretty much confused about this.

omarcostahamido commented 3 years ago

following the thread here, on which there has been no interaction with other people so far either (lol), I was able to get it to work without freezing Max. The problem is that I need to use an extra object like delay 0 of pipe 0 in order for it to work. Things will always come out in the scheduler thread right now. But, if they come in on the main thread, it will still freeze Max for a while.

robtherich commented 3 years ago

answered on your forum thread. in general the dev forum is the best place to ask questions, as there is a wider audience and therefore better chance it will get answered. the issue tracker is primarily for bugs and feature requests (as a loose guide).

omarcostahamido commented 3 years ago

thank you @robtherich and sorry for misusing the issues.

omarcostahamido commented 3 years ago

thx for that reference again @robtherich I was able to fix it. Interestingly enough, the solution for my specific problem has to deal with a little bit of everything that I had tried before and some of the new things I learned.