You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hmm, I'm not sure that's actually possible.
The main thread (the callAsync block) will signal those two events and the background thread which the test is running on will wait for them in turn.
If the background (test) thread gets to the waiters first, it will wait. If they've already been signalled by the main thread, it will just run over them.
If you pause the debugger whilst the test is running, can you see what each thread is doing?
Hi,
I am testing my plugin and getting false negative result on the
ParameterThreadSafetyTest()
I think that it might happen to some more cpu intensive plugins that take more time in processing.
I think this block might finish
pluginval/Source/tests/BasicTests.cpp
Lines 624 to 634 in b107dd2
before the main thread gets to
endWaiter.signal();
at the end of this block and we never get theendWaiter.signal()
while the main thread is waiting.pluginval/Source/tests/BasicTests.cpp
Lines 651 to 667 in b107dd2
I am not an expret in threading and in using JUCE thread classes, but when I decreased the number of cycles in the main loop
pluginval/Source/tests/BasicTests.cpp
Line 653 in b107dd2
to something like 10-20, the test finished successfully. I am not sure now how to fix it, but someone might be able to figure this out.
The text was updated successfully, but these errors were encountered: