Commits

Anonymous committed 5c412d0

test_rwlock.c : corrected a mesage and got rid of an unused struct memeber.

Comments (0)

Files changed (1)

pthreads/test_rwlock.c

 
 struct context_struct
 {
-    int writer;
     int index;
 };
 
     {
         context = malloc(sizeof(*context));
         context->index = a;
-        context->writer = 0;
         check = pthread_create(
             &readers[a],
             NULL,
     {
         context = malloc(sizeof(*context));
         context->index = a;
-        context->writer = 0;
         check = pthread_create(
             &writers[a],
             NULL,
         
         if (check != 0)
         {
-            fprintf(stderr, "Could not create Reader #%i!\n", a);
+            fprintf(stderr, "Could not create Writer #%i!\n", a);
             exit(-1);
         }
     }