diff options
author | Timo Teras <timo.teras@iki.fi> | 2010-03-10 18:12:02 +0200 |
---|---|---|
committer | Timo Teras <timo.teras@iki.fi> | 2010-03-10 18:12:02 +0200 |
commit | 674f1495ab082c8f5a604cbb5a4dadc95b8c7ebb (patch) | |
tree | f5fd6a58b2d202057ee7f2df43a4e5d26dd75b01 /test | |
parent | 5ef38570315dc68d7ddf8d9475d9a8830528e8a4 (diff) | |
download | libtf-674f1495ab082c8f5a604cbb5a4dadc95b8c7ebb.tar.bz2 libtf-674f1495ab082c8f5a604cbb5a4dadc95b8c7ebb.tar.xz |
libtf: fix stack frame creation and valgrind issues
debugging looks now better. there was also some valgrind issues
that needed attention.
Diffstat (limited to 'test')
-rw-r--r-- | test/httpget.c | 2 | ||||
-rw-r--r-- | test/read.c | 4 | ||||
-rw-r--r-- | test/simple1.c | 2 | ||||
-rw-r--r-- | test/sleep.c | 2 |
4 files changed, 5 insertions, 5 deletions
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(); |