diff options
Diffstat (limited to 'src/libthread/test/tprimes.c')
-rw-r--r-- | src/libthread/test/tprimes.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/libthread/test/tprimes.c b/src/libthread/test/tprimes.c index 8fcfa2e2..56744984 100644 --- a/src/libthread/test/tprimes.c +++ b/src/libthread/test/tprimes.c @@ -9,6 +9,7 @@ enum int max = 10000; int (*mk)(void (*fn)(void*), void *arg, uint stack); +void printmsg(void*, char*); void countthread(void *v) @@ -55,6 +56,7 @@ threadmain(int argc, char **argv) Channel *c; int nbuf; + notify(printmsg); nbuf = 0; mk = threadcreate; ARGBEGIN{ @@ -79,3 +81,9 @@ threadmain(int argc, char **argv) mk(filterthread, c, STACK); recvp(chancreate(sizeof(void*), 0)); } + +void +printmsg(void *v, char *msg) +{ + print("note: %s\n", msg); +} |