[cscore] Change run loop functions to not be mac specific (#4854)

This commit is contained in:
Thad House
2022-12-25 11:37:59 -08:00
committed by GitHub
parent 1f940e2b60
commit 1e7fcd5637
6 changed files with 87 additions and 28 deletions

View File

@@ -2229,38 +2229,38 @@ Java_edu_wpi_first_cscore_CameraServerJNI_freeRawFrame
/*
* Class: edu_wpi_first_cscore_CameraServerJNI
* Method: runOsxRunLoop
* Method: runMainRunLoop
* Signature: ()V
*/
JNIEXPORT void JNICALL
Java_edu_wpi_first_cscore_CameraServerJNI_runOsxRunLoop
Java_edu_wpi_first_cscore_CameraServerJNI_runMainRunLoop
(JNIEnv*, jclass)
{
cs::RunOsxRunLoop();
cs::RunMainRunLoop();
}
/*
* Class: edu_wpi_first_cscore_CameraServerJNI
* Method: runOsxRunLoopTimeout
* Method: runMainRunLoopTimeout
* Signature: (D)I
*/
JNIEXPORT jint JNICALL
Java_edu_wpi_first_cscore_CameraServerJNI_runOsxRunLoopTimeout
Java_edu_wpi_first_cscore_CameraServerJNI_runMainRunLoopTimeout
(JNIEnv*, jclass, jdouble timeoutSeconds)
{
return cs::RunOsxRunLoopTimeout(timeoutSeconds);
return cs::RunMainRunLoopTimeout(timeoutSeconds);
}
/*
* Class: edu_wpi_first_cscore_CameraServerJNI
* Method: stopOsxMainRunLoop
* Method: stopMainRunLoop
* Signature: ()V
*/
JNIEXPORT void JNICALL
Java_edu_wpi_first_cscore_CameraServerJNI_stopOsxMainRunLoop
Java_edu_wpi_first_cscore_CameraServerJNI_stopMainRunLoop
(JNIEnv*, jclass)
{
return cs::StopOsxMainRunLoop();
return cs::StopMainRunLoop();
}
} // extern "C"