summaryrefslogtreecommitdiffstats
path: root/test/sleep.c
diff options
context:
space:
mode:
Diffstat (limited to 'test/sleep.c')
-rw-r--r--test/sleep.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/test/sleep.c b/test/sleep.c
index 8e225a7..dd71d91 100644
--- a/test/sleep.c
+++ b/test/sleep.c
@@ -21,10 +21,10 @@ int main(int argc, char **argv)
struct ctx *c;
int i;
- tf_scheduler_enable(NULL);
+ tf_vmach_start();
for (i = 0; i < 1000; i++) {
c = tf_fiber_create(work_fiber, sizeof(struct ctx));
- tf_fiber_put(c);
+ tf_fiber_run(c);
}
- tf_scheduler_disable();
+ tf_vmach_stop();
}