From 64e23d8519acbdd12fd113174f8e33baaee4ca60 Mon Sep 17 00:00:00 2001 From: Jade Turner Date: Wed, 6 Nov 2024 11:46:05 +0800 Subject: [PATCH] java Signed-off-by: Jade Turner --- wpiutil/src/main/java/edu/wpi/first/util/WPIUtilJNI.java | 4 ++-- wpiutil/src/main/native/cpp/jni/WPIUtilJNI.cpp | 8 ++++---- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/wpiutil/src/main/java/edu/wpi/first/util/WPIUtilJNI.java b/wpiutil/src/main/java/edu/wpi/first/util/WPIUtilJNI.java index 136e2c041d6..42754b3640a 100644 --- a/wpiutil/src/main/java/edu/wpi/first/util/WPIUtilJNI.java +++ b/wpiutil/src/main/java/edu/wpi/first/util/WPIUtilJNI.java @@ -108,7 +108,7 @@ public static synchronized void forceLoad() throws IOException { * @param initialState true to make the event initially in signaled state * @return Event handle */ - public static native int createEvent(boolean manualReset, boolean initialState); + public static native int makeEvent(boolean manualReset, boolean initialState); /** * Destroys an event. Destruction wakes up any waiters. @@ -141,7 +141,7 @@ public static synchronized void forceLoad() throws IOException { * @param maximumCount maximum value for the semaphore's internal counter * @return Semaphore handle */ - public static native int createSemaphore(int initialCount, int maximumCount); + public static native int makeSemaphore(int initialCount, int maximumCount); /** * Destroys a semaphore. Destruction wakes up any waiters. diff --git a/wpiutil/src/main/native/cpp/jni/WPIUtilJNI.cpp b/wpiutil/src/main/native/cpp/jni/WPIUtilJNI.cpp index 60022d192eb..2b39e07fb67 100644 --- a/wpiutil/src/main/native/cpp/jni/WPIUtilJNI.cpp +++ b/wpiutil/src/main/native/cpp/jni/WPIUtilJNI.cpp @@ -162,11 +162,11 @@ Java_edu_wpi_first_util_WPIUtilJNI_getSystemTime /* * Class: edu_wpi_first_util_WPIUtilJNI - * Method: createEvent + * Method: makeEvent * Signature: (ZZ)I */ JNIEXPORT jint JNICALL -Java_edu_wpi_first_util_WPIUtilJNI_createEvent +Java_edu_wpi_first_util_WPIUtilJNI_makeEvent (JNIEnv*, jclass, jboolean manualReset, jboolean initialState) { return wpi::MakeEvent(manualReset, initialState); @@ -210,11 +210,11 @@ Java_edu_wpi_first_util_WPIUtilJNI_resetEvent /* * Class: edu_wpi_first_util_WPIUtilJNI - * Method: createSemaphore + * Method: makeSemaphore * Signature: (II)I */ JNIEXPORT jint JNICALL -Java_edu_wpi_first_util_WPIUtilJNI_createSemaphore +Java_edu_wpi_first_util_WPIUtilJNI_makeSemaphore (JNIEnv*, jclass, jint initialCount, jint maximumCount) { return wpi::MakeSemaphore(initialCount, maximumCount);