mirror of
https://github.com/wpilibsuite/allwpilib
synced 2026-06-20 00:51:42 +00:00
Switches JNI to use SafeThread from WPIUtil (#282)
This commit is contained in:
committed by
Peter Johnson
parent
499da6d08d
commit
4f4c52d6d5
@@ -16,8 +16,8 @@
|
||||
#include <thread>
|
||||
#include "HALUtil.h"
|
||||
#include "HAL/cpp/Log.h"
|
||||
#include "SafeThread.h"
|
||||
#include "edu_wpi_first_wpilibj_hal_NotifierJNI.h"
|
||||
#include "support/SafeThread.h"
|
||||
|
||||
// set the logging level
|
||||
TLogLevel notifierJNILogLevel = logWARNING;
|
||||
@@ -40,7 +40,7 @@ TLogLevel notifierJNILogLevel = logWARNING;
|
||||
//
|
||||
// We don't want to use a FIFO here. If the user code takes too long to
|
||||
// process, we will just ignore the redundant wakeup.
|
||||
class NotifierThreadJNI : public SafeThread {
|
||||
class NotifierThreadJNI : public wpi::SafeThread {
|
||||
public:
|
||||
void Main();
|
||||
|
||||
@@ -50,7 +50,7 @@ class NotifierThreadJNI : public SafeThread {
|
||||
uint64_t m_currentTime;
|
||||
};
|
||||
|
||||
class NotifierJNI : public SafeThreadOwner<NotifierThreadJNI> {
|
||||
class NotifierJNI : public wpi::SafeThreadOwner<NotifierThreadJNI> {
|
||||
public:
|
||||
void SetFunc(JNIEnv *env, jobject func, jmethodID mid);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user