diff options
author | rpj <rpj> | 2003-08-14 08:53:17 +0000 |
---|---|---|
committer | rpj <rpj> | 2003-08-14 08:53:17 +0000 |
commit | a50745ec922a917513029f3f87bf820827b43f29 (patch) | |
tree | 1e221862e0550d163baef12d17634430ae677824 /tests/create2.c | |
parent | 414f4bd7e70d94025576d9264c86da63c506f6ca (diff) |
Reuse of thread IDs, improved thread ID validation, new tests, bug fixes.
Diffstat (limited to 'tests/create2.c')
-rw-r--r-- | tests/create2.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/tests/create2.c b/tests/create2.c index ea2979f..d23d19f 100644 --- a/tests/create2.c +++ b/tests/create2.c @@ -76,16 +76,13 @@ #include "test.h" enum { - NUMTHREADS = 10000; + NUMTHREADS = 10000 }; static int washere = 0; void * func(void * arg) { - HANDLE w32ThreadH = (pthread_self())->threadH; - - assert(w32ThreadH != 0); washere = 1; return (void *) 0; } @@ -96,6 +93,7 @@ main() pthread_t t; pthread_attr_t attr; void * result = NULL; + int i; pthread_attr_init(&attr); pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_JOINABLE); |