machinarium: update csw benchmark
@@ -29,7 +29,7 @@ static void
benchmark_runner(void *arg)
{
printf("benchmark started.\n");
- machine_create_fiber(benchmark_worker, NULL);
+ machine_fiber_create(benchmark_worker, NULL);
machine_sleep(1000);
printf("done.\n");
printf("context switches %d in 1 sec.\n", csw);
@@ -41,7 +41,7 @@ main(int argc, char *argv[])
{
machinarium_init();
int id = machine_create("benchmark", benchmark_runner, NULL);
- machine_join(id);
+ machine_wait(id);
machinarium_free();
return 0;
}
