mirror of
https://github.com/wpilibsuite/allwpilib
synced 2026-06-29 02:21:44 +00:00
Cleaned up robot startup and cleanup/shutdown code (#77)
Cleaned up RobotBase, removed singleton list from SensorBase, and removed unused typedefs and NULL_TASK macro from HAL's Task.hpp. Making the robot class instance static fixed non-POD statics used by the instance during destruction from being destroyed first.
This commit is contained in:
committed by
Peter Johnson
parent
ecc210f99a
commit
d66c61a36e
@@ -10,16 +10,6 @@
|
||||
#include <pthread.h>
|
||||
#include <stdint.h>
|
||||
|
||||
#ifndef _FUNCPTR_DEFINED
|
||||
#define _FUNCPTR_DEFINED
|
||||
#ifdef __cplusplus
|
||||
typedef int (*FUNCPTR)(...);
|
||||
/* ptr to function returning int */
|
||||
#else
|
||||
typedef int (*FUNCPTR)(); /* ptr to function returning int */
|
||||
#endif /* __cplusplus */
|
||||
#endif /* _FUNCPTR_DEFINED */
|
||||
|
||||
#ifndef _STATUS_DEFINED
|
||||
#define _STATUS_DEFINED
|
||||
typedef int STATUS;
|
||||
@@ -32,7 +22,6 @@ typedef int STATUS;
|
||||
#define ERROR (-1)
|
||||
#endif /* ERROR */
|
||||
|
||||
#define NULL_TASK NULL
|
||||
typedef pthread_t* TASK;
|
||||
|
||||
extern "C" {
|
||||
|
||||
Reference in New Issue
Block a user