drake
1.0.0
|
#include <stddef.h>
#include <drake/task.h>
#include <drake/cross_link.h>
#include <pelib/structure.h>
Go to the source code of this file.
Data Structures | |
struct | processor |
Defines | |
#define | DRAKE_MAPPING_PROC_ID_CHAR_LENGTH 2 |
#define | DRAKE_MAPPING_NODE_CHAR_LENGTH 2 |
#define | DRAKE_MAPPING_SEPARATOR ':' |
#define | STRUCT_T processor_t |
Generates a processor pelib object. | |
#define | DONE_processor_t 1 |
Typedefs | |
typedef unsigned int | processor_id |
typedef struct processor | processor_t |
Functions | |
int | drake_processor_insert_task (processor_t *proc, task_t *task) |
int | drake_processor_remove_task (processor_t *proc, task_id task) |
size_t | drake_processor_find_task (processor_t *proc, task_id task) |
#define DONE_processor_t 1 |
Definition at line 66 of file processor.h.
#define DRAKE_MAPPING_NODE_CHAR_LENGTH 2 |
Definition at line 30 of file processor.h.
#define DRAKE_MAPPING_PROC_ID_CHAR_LENGTH 2 |
Definition at line 29 of file processor.h.
#define DRAKE_MAPPING_SEPARATOR ':' |
Definition at line 31 of file processor.h.
#define STRUCT_T processor_t |
Generates a processor pelib object.
Definition at line 64 of file processor.h.
typedef unsigned int processor_id |
Internal id of a processor within the drake framework
Definition at line 34 of file processor.h.
typedef struct processor processor_t |
Space-less type alias for struct processor
Definition at line 54 of file processor.h.
size_t drake_processor_find_task | ( | processor_t * | proc, |
task_id | task | ||
) |
Finds the index of a task (starting at 0) within the list of task contained in a processor. If the task could not be found, return the number of tasks mapped to the processor.
Definition at line 199 of file processor.c.
int drake_processor_insert_task | ( | processor_t * | proc, |
task_t * | task | ||
) |
Inserts a copy of a task into the processor
Definition at line 142 of file processor.c.
int drake_processor_remove_task | ( | processor_t * | proc, |
task_id | task | ||
) |
Removes a task from a processor
Definition at line 174 of file processor.c.