more tests

This commit is contained in:
rsc 2005-01-04 22:15:53 +00:00
parent ed01060152
commit f6127ed209
5 changed files with 130 additions and 3 deletions

View file

@ -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);
}