You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

23 lines
384 B

#include <stdlib.h>
#include "task.h"
#include "../definitions.h"
Task * TaskInit(int workerid){
Task *new = malloc(sizeof(Task));
new->target = 0;
new->progress = 0;
int repeat = 0;
switch(workerid){
case PR_BUILDER:
repeat = 0;
break;
default:
repeat = 0;
}
new->repeat = repeat;
return new;
}