drake  1.0.0
src/processor.c File Reference
#include <stdlib.h>
#include <string.h>
#include <drake/processor.h>
#include <drake/platform.h>
Include dependency graph for processor.c:

Go to the source code of this file.


processor_t (size_t size)
int pelib_free() processor_t (processor_t *proc)
int pelib_copy() processor_t (processor_t source, processor_t *copy)
char *pelib_string() processor_t (processor_t proc)
FILE *pelib_printf() processor_t (FILE *stream, processor_t proc)
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)

Function Documentation

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.

processor_t* pelib_alloc_collection() processor_t ( size_t  size)

Definition at line 29 of file processor.c.

int pelib_free() processor_t ( processor_t proc)

Definition at line 70 of file processor.c.

int pelib_copy() processor_t ( processor_t  source,
processor_t copy 

Definition at line 85 of file processor.c.

char* pelib_string() processor_t ( processor_t  proc)

Definition at line 105 of file processor.c.

FILE* pelib_printf() processor_t ( FILE *  stream,
processor_t  proc 

Definition at line 131 of file processor.c.