#include "asynch.h" #include "my_task.h" /* * server entry point * ARG1 is the task * ARG2 is the result of the task * ARG3 is the size of the result of the task */ void entry_point(struct task *, void **, long *); // implementation void entry_point(struct task *task, void **result, long *sizeOfResult) { // typecast the task struct adder_task *at = (struct adder_task *) task; // allocate space int *iresult_pt=(int *)malloc(sizeof(int)); // make computation *iresult_pt = at->arg1 + at->arg2; // return the result *result = iresult_pt; *sizeOfResult = sizeof(int); }