mirror of
https://github.com/wpilibsuite/allwpilib
synced 2026-07-01 02:41:48 +00:00
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:
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user