mirror of
https://github.com/wpilibsuite/allwpilib
synced 2026-06-23 01:21:42 +00:00
[wpiutil] Rename CreateEvent and CreateSemaphore to Make (#8710)
CreateEvent and CreateSemaphore are macros in Windows.h, which causes a ton of trouble. Just rename the functions. Closes #7303 Replaces #7336
This commit is contained in:
@@ -45,7 +45,7 @@ public class EducationalRobot extends RobotBase {
|
||||
final ControlWord word = new ControlWord();
|
||||
DriverStationModeThread modeThread = new DriverStationModeThread(word);
|
||||
|
||||
int event = WPIUtilJNI.createEvent(false, false);
|
||||
int event = WPIUtilJNI.makeEvent(false, false);
|
||||
|
||||
DriverStation.provideRefreshedDataEventHandle(event);
|
||||
|
||||
|
||||
@@ -40,7 +40,7 @@ public class Robot extends RobotBase {
|
||||
final ControlWord word = new ControlWord();
|
||||
DriverStationModeThread modeThread = new DriverStationModeThread(word);
|
||||
|
||||
int event = WPIUtilJNI.createEvent(false, false);
|
||||
int event = WPIUtilJNI.makeEvent(false, false);
|
||||
|
||||
DriverStation.provideRefreshedDataEventHandle(event);
|
||||
|
||||
|
||||
@@ -45,7 +45,7 @@ public class EducationalRobot extends RobotBase {
|
||||
final ControlWord word = new ControlWord();
|
||||
DriverStationModeThread modeThread = new DriverStationModeThread(word);
|
||||
|
||||
int event = WPIUtilJNI.createEvent(false, false);
|
||||
int event = WPIUtilJNI.makeEvent(false, false);
|
||||
|
||||
DriverStation.provideRefreshedDataEventHandle(event);
|
||||
|
||||
|
||||
@@ -45,7 +45,7 @@ public class EducationalRobot extends RobotBase {
|
||||
final ControlWord word = new ControlWord();
|
||||
DriverStationModeThread modeThread = new DriverStationModeThread(word);
|
||||
|
||||
int event = WPIUtilJNI.createEvent(false, false);
|
||||
int event = WPIUtilJNI.makeEvent(false, false);
|
||||
|
||||
DriverStation.provideRefreshedDataEventHandle(event);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user