path: root/test/read.c
diff options
authorTimo Teräs <>2010-07-02 20:23:07 +0300
committerTimo Teräs <>2010-07-02 20:25:47 +0300
commit23b95bf1a15322c2f471b80c06cb65d9b2d2a282 (patch)
tree9bf12231db9591852e3b42ca24715d2cbaf6267b /test/read.c
parent0183e33d9a4759764716e771b85e19f7a997b8bd (diff)
libtf: major redesign startedHEADmaster
the idea is to make libtf completely multi-threaded. meaning each fiber can be running concurrently in separate thread. quite a bit of framework is added for this and some atomic helpers are already introduced. however, io polling is busy polling now (will be soon in own thread) and timeouts are still more or less broken. oh, and the multithreading core is not there yet. basically we are currently mostly broken ;)
Diffstat (limited to 'test/read.c')
1 files changed, 4 insertions, 4 deletions
diff --git a/test/read.c b/test/read.c
index 0dc72cc..9963a62 100644
--- a/test/read.c
+++ b/test/read.c
@@ -34,8 +34,8 @@ static void io_fiber(void *ptr)
int main(int argc, char **argv)
- tf_scheduler_enable(NULL);
- tf_fiber_put(tf_fiber_create(time_fiber, 0));
- tf_fiber_put(tf_fiber_create(io_fiber, 0));
- tf_scheduler_disable();
+ tf_vmach_start();
+ tf_fiber_run(tf_fiber_create(time_fiber, 0));
+ tf_fiber_run(tf_fiber_create(io_fiber, 0));
+ tf_vmach_stop();