I have written a Webworks plugin based off your excellent plugin template, in the course of that I found a bug: template_ndk.hpp defines two private member variables cond and mutex (see here).
In the corresponding constructor in template_ndk.cpp, these two are supposed to get initialized, but they aren't. Instead, new variables, which are local to the constructor, are declared (see here), which for me meant that the mutex was never correctly initialized, my thread synchronization acted weirdly and my app froze.
I have written a Webworks plugin based off your excellent plugin template, in the course of that I found a bug:
template_ndk.hpp
defines two private member variablescond
andmutex
(see here).In the corresponding constructor in
template_ndk.cpp
, these two are supposed to get initialized, but they aren't. Instead, new variables, which are local to the constructor, are declared (see here), which for me meant that the mutex was never correctly initialized, my thread synchronization acted weirdly and my app froze.Long story short: in
template_ndk.cpp
, this:should become this:
Thanks for this (otherwise ;-) ) great template.