/[hurd]/hurd/libpthread/tests/test-1.c
ViewVC logotype

Diff of /hurd/libpthread/tests/test-1.c

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.1 by neal, Thu Oct 10 23:05:05 2002 UTC revision 1.2 by neal, Thu May 12 20:55:36 2005 UTC
# Line 27  main (int argc, char **argv) Line 27  main (int argc, char **argv)
27    
28    for (i = 0; i < THREADS; i ++)    for (i = 0; i < THREADS; i ++)
29      {      {
30        mutex[i] = PTHREAD_MUTEX_INITIALIZER;        pthread_mutex_init (&mutex[i], 0);
31        pthread_mutex_lock (&mutex[i]);        pthread_mutex_lock (&mutex[i]);
32        err = pthread_create (&tid[i], 0, foo, &mutex[i]);        err = pthread_create (&tid[i], 0, foo, &mutex[i]);
33        if (err)        if (err)

Legend:
Removed from v.1.1  
changed lines
  Added in v.1.2

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26