mirror of
https://github.com/PX4/PX4-Autopilot.git
synced 2026-06-06 06:43:21 +08:00
Linux: fixed px4_task_t to be int
px4_task_t is negative for failure conditions. It was set mistakenly to pthread_t (which is unsigned) for LInux. Signed-off-by: Mark Charlebois <charlebm@gmail.com>
This commit is contained in:
@@ -58,7 +58,7 @@ typedef int px4_task_t;
|
||||
#define SCHED_PRIORITY_MIN sched_get_priority_min(SCHED_FIFO)
|
||||
#define SCHED_PRIORITY_DEFAULT sched_get_priority_max(SCHED_FIFO)
|
||||
|
||||
typedef pthread_t px4_task_t;
|
||||
typedef int px4_task_t;
|
||||
|
||||
typedef struct {
|
||||
int argc;
|
||||
|
||||
Reference in New Issue
Block a user