mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-18 21:03:34 +08:00
Removed px4_killall
killall and px4_killall are not used in the codebase so it was removed. Signed-off-by: Mark Charlebois <charlebm@gmail.com>
This commit is contained in:
@@ -237,17 +237,6 @@ void px4_task_exit(int ret)
|
||||
pthread_exit((void *)(unsigned long)ret);
|
||||
}
|
||||
|
||||
void px4_killall(void)
|
||||
{
|
||||
//printf("Called px4_killall\n");
|
||||
for (int i=0; i<PX4_MAX_TASKS; ++i) {
|
||||
// FIXME - precludes pthread task to have an ID of 0
|
||||
if (taskmap[i].isused == true) {
|
||||
px4_task_delete(i);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
int px4_task_kill(px4_task_t id, int sig)
|
||||
{
|
||||
int rv = 0;
|
||||
|
||||
@@ -91,9 +91,6 @@ __BEGIN_DECLS
|
||||
/** Reboots the board */
|
||||
__EXPORT void px4_systemreset(bool to_bootloader) noreturn_function;
|
||||
|
||||
/** Sends SIGUSR1 to all processes */
|
||||
__EXPORT void px4_killall(void);
|
||||
|
||||
/** Starts a task and performs any specific accounting, scheduler setup, etc. */
|
||||
__EXPORT px4_task_t px4_task_spawn_cmd(const char *name,
|
||||
int priority,
|
||||
|
||||
@@ -169,17 +169,6 @@ void px4_task_exit(int ret)
|
||||
// Free stack
|
||||
}
|
||||
|
||||
void px4_killall(void)
|
||||
{
|
||||
//printf("Called px4_killall\n");
|
||||
for (int i=0; i<PX4_MAX_TASKS; ++i) {
|
||||
// FIXME - precludes pthread task to have an ID of 0
|
||||
if (taskmap[i].isused == true) {
|
||||
px4_task_delete(i);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
int px4_task_kill(px4_task_t id, int sig)
|
||||
{
|
||||
printf("Called px4_task_kill\n");
|
||||
|
||||
Reference in New Issue
Block a user