Skip to content

Commit

Permalink
java
Browse files Browse the repository at this point in the history
Signed-off-by: Jade Turner <[email protected]>
  • Loading branch information
spacey-sooty committed Nov 6, 2024
1 parent 98b2b51 commit 64e23d8
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions wpiutil/src/main/java/edu/wpi/first/util/WPIUtilJNI.java
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down Expand Up @@ -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.
Expand Down
8 changes: 4 additions & 4 deletions wpiutil/src/main/native/cpp/jni/WPIUtilJNI.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down Expand Up @@ -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);
Expand Down

0 comments on commit 64e23d8

Please sign in to comment.