From 674f1495ab082c8f5a604cbb5a4dadc95b8c7ebb Mon Sep 17 00:00:00 2001 From: Timo Teras Date: Wed, 10 Mar 2010 18:12:02 +0200 Subject: libtf: fix stack frame creation and valgrind issues debugging looks now better. there was also some valgrind issues that needed attention. --- test/httpget.c | 2 +- test/read.c | 4 ++-- test/simple1.c | 2 +- test/sleep.c | 2 +- 4 files changed, 5 insertions(+), 5 deletions(-) (limited to 'test') diff --git a/test/httpget.c b/test/httpget.c index 9aec886..29f7f14 100644 --- a/test/httpget.c +++ b/test/httpget.c @@ -51,7 +51,7 @@ int main(int argc, char **argv) tf_scheduler_enable(NULL); for (i = 1; i < argc; i++) { - c = tf_fiber_create(NULL, ping_fiber, sizeof(struct ctx)); + c = tf_fiber_create(ping_fiber, sizeof(struct ctx)); c->hostname = argv[i]; tf_fiber_put(c); } diff --git a/test/read.c b/test/read.c index 3d318a3..0dc72cc 100644 --- a/test/read.c +++ b/test/read.c @@ -35,7 +35,7 @@ static void io_fiber(void *ptr) int main(int argc, char **argv) { tf_scheduler_enable(NULL); - tf_fiber_put(tf_fiber_create(NULL, time_fiber, 0)); - tf_fiber_put(tf_fiber_create(NULL, io_fiber, 0)); + tf_fiber_put(tf_fiber_create(time_fiber, 0)); + tf_fiber_put(tf_fiber_create(io_fiber, 0)); tf_scheduler_disable(); } diff --git a/test/simple1.c b/test/simple1.c index 6a05b7a..6f40f8d 100644 --- a/test/simple1.c +++ b/test/simple1.c @@ -21,7 +21,7 @@ int main(int argc, char **argv) tf_scheduler_enable(NULL); for (i = 0; i < 6; i++) { - c = tf_fiber_create(NULL, work_fiber, sizeof(struct ctx)); + c = tf_fiber_create(work_fiber, sizeof(struct ctx)); c->id = i; tf_fiber_put(c); } diff --git a/test/sleep.c b/test/sleep.c index 82399e1..ec21a76 100644 --- a/test/sleep.c +++ b/test/sleep.c @@ -23,7 +23,7 @@ int main(int argc, char **argv) tf_scheduler_enable(NULL); for (i = 0; i < 100; i++) { - c = tf_fiber_create(NULL, work_fiber, sizeof(struct ctx)); + c = tf_fiber_create(work_fiber, sizeof(struct ctx)); tf_fiber_put(c); } tf_scheduler_disable(); -- cgit v1.2.3