wpiutil: SafeThread: join on thread exit (#1357)

This can be conditionally disabled (for cases like JNI callbacks where the JVM
may block callbacks into it during shutdown).
This commit is contained in:
Peter Johnson
2018-10-06 15:17:13 -07:00
committed by GitHub
parent 18c8cce6a7
commit 613d5eda0d
3 changed files with 35 additions and 12 deletions

View File

@@ -479,6 +479,7 @@ class JCallbackThread : public SafeThread {
template <typename T>
class JCallbackManager : public SafeThreadOwner<JCallbackThread<T>> {
public:
JCallbackManager() { this->SetJoinAtExit(false); }
void SetFunc(JNIEnv* env, jobject func, jmethodID mid);
template <typename... Args>