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:
Mark Charlebois
2015-05-06 16:04:20 -07:00
parent 3a65187303
commit 948b47bd33
3 changed files with 0 additions and 25 deletions
@@ -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;
-3
View File
@@ -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");