Skip to content

Commit b130e4a

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

File tree

13 files changed

+17
-17
lines changed

13 files changed

+17
-17
lines changed

wpilibj/src/main/java/edu/wpi/first/wpilibj/DriverStation.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -1152,7 +1152,7 @@ public static AllianceStationID getRawAllianceStation() {
11521152
* @return true if connected, false if timeout
11531153
*/
11541154
public static boolean waitForDsConnection(double timeoutSeconds) {
1155-
int event = WPIUtilJNI.createEvent(true, false);
1155+
int event = WPIUtilJNI.makeEvent(true, false);
11561156
DriverStationJNI.provideNewDataEventHandle(event);
11571157
boolean result;
11581158
try {

wpilibj/src/main/java/edu/wpi/first/wpilibj/MotorSafety.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ public abstract class MotorSafety {
3131

3232
@SuppressWarnings("PMD.AssignmentInOperand")
3333
private static void threadMain() {
34-
int event = WPIUtilJNI.createEvent(false, false);
34+
int event = WPIUtilJNI.makeEvent(false, false);
3535
DriverStationJNI.provideNewDataEventHandle(event);
3636
ControlWord controlWord = new ControlWord();
3737

wpilibj/src/main/java/edu/wpi/first/wpilibj/internal/DriverStationModeThread.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ public DriverStationModeThread() {
2727
}
2828

2929
private void run() {
30-
int handle = WPIUtilJNI.createEvent(false, false);
30+
int handle = WPIUtilJNI.makeEvent(false, false);
3131
DriverStationJNI.provideNewDataEventHandle(handle);
3232

3333
while (m_keepAlive.get()) {

wpilibj/src/main/java/edu/wpi/first/wpilibj/simulation/DriverStationSim.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -285,7 +285,7 @@ public static void setMatchTime(double matchTime) {
285285

286286
/** Updates DriverStation data so that new values are visible to the user program. */
287287
public static void notifyNewData() {
288-
int handle = WPIUtilJNI.createEvent(false, false);
288+
int handle = WPIUtilJNI.makeEvent(false, false);
289289
DriverStationJNI.provideNewDataEventHandle(handle);
290290
DriverStationDataJNI.notifyNewData();
291291
try {

wpilibjExamples/src/main/java/edu/wpi/first/wpilibj/templates/educational/EducationalRobot.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ public void test() {
3636
public void startCompetition() {
3737
DriverStationModeThread modeThread = new DriverStationModeThread();
3838

39-
int event = WPIUtilJNI.createEvent(false, false);
39+
int event = WPIUtilJNI.makeEvent(false, false);
4040

4141
DriverStation.provideRefreshedDataEventHandle(event);
4242

wpilibjExamples/src/main/java/edu/wpi/first/wpilibj/templates/robotbaseskeleton/Robot.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ public void test() {}
3131
public void startCompetition() {
3232
DriverStationModeThread modeThread = new DriverStationModeThread();
3333

34-
int event = WPIUtilJNI.createEvent(false, false);
34+
int event = WPIUtilJNI.makeEvent(false, false);
3535

3636
DriverStation.provideRefreshedDataEventHandle(event);
3737

wpilibjExamples/src/main/java/edu/wpi/first/wpilibj/templates/romieducational/EducationalRobot.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ public void test() {
3636
public void startCompetition() {
3737
DriverStationModeThread modeThread = new DriverStationModeThread();
3838

39-
int event = WPIUtilJNI.createEvent(false, false);
39+
int event = WPIUtilJNI.makeEvent(false, false);
4040

4141
DriverStation.provideRefreshedDataEventHandle(event);
4242

wpilibjExamples/src/main/java/edu/wpi/first/wpilibj/templates/xrpeducational/EducationalRobot.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ public void test() {
3636
public void startCompetition() {
3737
DriverStationModeThread modeThread = new DriverStationModeThread();
3838

39-
int event = WPIUtilJNI.createEvent(false, false);
39+
int event = WPIUtilJNI.makeEvent(false, false);
4040

4141
DriverStation.provideRefreshedDataEventHandle(event);
4242

wpilibjIntegrationTests/src/main/java/edu/wpi/first/wpilibj/DriverStationTest.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ protected Logger getClassLogger() {
2626
public void waitForDataTest() {
2727
long startTime = RobotController.getFPGATime();
2828

29-
int handle = WPIUtilJNI.createEvent(false, false);
29+
int handle = WPIUtilJNI.makeEvent(false, false);
3030
DriverStationJNI.provideNewDataEventHandle(handle);
3131

3232
// Wait for data 50 times

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/java/edu/wpi/first/util/concurrent/Event.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ public final class Event implements AutoCloseable {
2222
* @param initialState true to make the event initially in signaled state
2323
*/
2424
public Event(boolean manualReset, boolean initialState) {
25-
m_handle = WPIUtilJNI.createEvent(manualReset, initialState);
25+
m_handle = WPIUtilJNI.makeEvent(manualReset, initialState);
2626
}
2727

2828
/**

wpiutil/src/main/java/edu/wpi/first/util/concurrent/Semaphore.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ public final class Semaphore implements AutoCloseable {
2121
* @param maximumCount maximum value for the semaphore's internal counter
2222
*/
2323
public Semaphore(int initialCount, int maximumCount) {
24-
m_handle = WPIUtilJNI.createSemaphore(initialCount, maximumCount);
24+
m_handle = WPIUtilJNI.makeSemaphore(initialCount, maximumCount);
2525
}
2626

2727
/**

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)