Skip to content

Commit 64e23d8

Browse files
committed
java
Signed-off-by: Jade Turner <[email protected]>
1 parent 98b2b51 commit 64e23d8

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

wpiutil/src/main/java/edu/wpi/first/util/WPIUtilJNI.java

+2-2
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,7 @@ public static synchronized void forceLoad() throws IOException {
108108
* @param initialState true to make the event initially in signaled state
109109
* @return Event handle
110110
*/
111-
public static native int createEvent(boolean manualReset, boolean initialState);
111+
public static native int makeEvent(boolean manualReset, boolean initialState);
112112

113113
/**
114114
* Destroys an event. Destruction wakes up any waiters.
@@ -141,7 +141,7 @@ public static synchronized void forceLoad() throws IOException {
141141
* @param maximumCount maximum value for the semaphore's internal counter
142142
* @return Semaphore handle
143143
*/
144-
public static native int createSemaphore(int initialCount, int maximumCount);
144+
public static native int makeSemaphore(int initialCount, int maximumCount);
145145

146146
/**
147147
* Destroys a semaphore. Destruction wakes up any waiters.

wpiutil/src/main/native/cpp/jni/WPIUtilJNI.cpp

+4-4
Original file line numberDiff line numberDiff line change
@@ -162,11 +162,11 @@ Java_edu_wpi_first_util_WPIUtilJNI_getSystemTime
162162

163163
/*
164164
* Class: edu_wpi_first_util_WPIUtilJNI
165-
* Method: createEvent
165+
* Method: makeEvent
166166
* Signature: (ZZ)I
167167
*/
168168
JNIEXPORT jint JNICALL
169-
Java_edu_wpi_first_util_WPIUtilJNI_createEvent
169+
Java_edu_wpi_first_util_WPIUtilJNI_makeEvent
170170
(JNIEnv*, jclass, jboolean manualReset, jboolean initialState)
171171
{
172172
return wpi::MakeEvent(manualReset, initialState);
@@ -210,11 +210,11 @@ Java_edu_wpi_first_util_WPIUtilJNI_resetEvent
210210

211211
/*
212212
* Class: edu_wpi_first_util_WPIUtilJNI
213-
* Method: createSemaphore
213+
* Method: makeSemaphore
214214
* Signature: (II)I
215215
*/
216216
JNIEXPORT jint JNICALL
217-
Java_edu_wpi_first_util_WPIUtilJNI_createSemaphore
217+
Java_edu_wpi_first_util_WPIUtilJNI_makeSemaphore
218218
(JNIEnv*, jclass, jint initialCount, jint maximumCount)
219219
{
220220
return wpi::MakeSemaphore(initialCount, maximumCount);

0 commit comments

Comments
 (0)