Commit 387d1509 authored by Rusty Russell's avatar Rusty Russell

Adapt antithread to new talloc locking, and fix so talloc destructor

works.
parent d65da2db
This diff is collapsed.
...@@ -20,8 +20,8 @@ int main(int argc, char *argv[]) ...@@ -20,8 +20,8 @@ int main(int argc, char *argv[])
assert(atp); assert(atp);
pid = talloc(at_pool_ctx(atp), int); pid = talloc(at_pool_ctx(atp), int);
assert(pid); assert(pid);
ok1((char *)pid >= (char *)atp->pool ok1((char *)pid >= (char *)atp->p->pool
&& (char *)pid < (char *)atp->pool + atp->poolsize); && (char *)pid < (char *)atp->p->pool + atp->p->poolsize);
at = at_run(atp, test, pid); at = at_run(atp, test, pid);
assert(at); assert(at);
......
...@@ -26,8 +26,8 @@ int main(int argc, char *argv[]) ...@@ -26,8 +26,8 @@ int main(int argc, char *argv[])
assert(atp); assert(atp);
pid = talloc(at_pool_ctx(atp), int); pid = talloc(at_pool_ctx(atp), int);
assert(pid); assert(pid);
ok1((char *)pid >= (char *)atp->pool ok1((char *)pid >= (char *)atp->p->pool
&& (char *)pid < (char *)atp->pool + atp->poolsize); && (char *)pid < (char *)atp->p->pool + atp->p->poolsize);
/* This is a failed spawn. */ /* This is a failed spawn. */
at = at_spawn(atp, pid, bad_args); at = at_spawn(atp, pid, bad_args);
......
...@@ -21,8 +21,8 @@ int main(int argc, char *argv[]) ...@@ -21,8 +21,8 @@ int main(int argc, char *argv[])
assert(atp); assert(atp);
pid = talloc(at_pool_ctx(atp), int); pid = talloc(at_pool_ctx(atp), int);
assert(pid); assert(pid);
ok1((char *)pid >= (char *)atp->pool ok1((char *)pid >= (char *)atp->p->pool
&& (char *)pid < (char *)atp->pool + atp->poolsize); && (char *)pid < (char *)atp->p->pool + atp->p->poolsize);
at = at_run(atp, test, pid); at = at_run(atp, test, pid);
assert(at); assert(at);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment