view src/parallel_execution/examples/gearsDirectory/GearsDirectory_test.cbc @ 985:33d7b8a86f69

fix gearsDirectory
author matac42 <matac@cr.ie.u-ryukyu.ac.jp>
date Sat, 20 Nov 2021 03:13:21 +0900
parents f86f3496f5fd
children 3c9f6fda000d
line wrap: on
line source

#include "../../../context.h"
#interface "GearsDirectory.h"



__code task1(GearsDirectory* gearsDirectory){     
    goto gearsDirectory->cd2Child(task2);
}

__code task1_stub(struct Context* context){
    GearsDirectory* gearsDirectory = createGearsDirectoryImpl(context);
    goto task1(context, gearsDirectory);
}

__code task2(GearsDirectory* gearsDirectory){
    goto gearsDirectory->cd2Parent(task3);
}

__code task2_stub(struct Context* context){
    GearsDirectory* gearsDirectory = (struct GearsDirectory*)Gearef(context, GearsDirectory)->gearsDirectory;
    goto task2(context, gearsDirectory);
}

__code task3(GearsDirectory* gearsDirectory){

}

__code task3_stub(struct Context* context){
    GearsDirectory* gearsDirectory = (struct GearsDirectory*)Gearef(context, GearsDirectory)->gearsDirectory;
    goto task3(context, gearsDirectory);
}

int main(int argc, char** argv) {
    printf("main\n");
    goto task1();
}