Wait/Notify in a ThreadPoolJob


#1

Hi Jules.

I’m using wait/notify in the ThreadPoolJob by saving a pointer to Thread::getCurrentThread() in the runJob() function
Would you consider adding a wait/notify in the TheadPoolJob?

Sorry for the ThreadPool nagging today…
Thanks.


#2

Why would you attempt to use the thread’s WaitableEvent object (which is shared with other threads and used for other purposes!)… when you could just create your own WaitableEvent and use it??


#3

WaitableEvent, great!
I know I should scan Juce’s class list from time to time, There’s always something useful I didn’t know about…