gnunet-svn
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[GNUnet-SVN] r1061 - GNUnet/src/util


From: grothoff
Subject: [GNUnet-SVN] r1061 - GNUnet/src/util
Date: Sun, 26 Jun 2005 07:02:49 -0700 (PDT)

Author: grothoff
Date: 2005-06-26 07:02:47 -0700 (Sun, 26 Jun 2005)
New Revision: 1061

Modified:
   GNUnet/src/util/semaphore.c
Log:
extr a check

Modified: GNUnet/src/util/semaphore.c
===================================================================
--- GNUnet/src/util/semaphore.c 2005-06-26 13:38:03 UTC (rev 1060)
+++ GNUnet/src/util/semaphore.c 2005-06-26 14:02:47 UTC (rev 1061)
@@ -312,6 +312,7 @@
 int PTHREAD_SELF_TEST(PTHREAD_T * pt) {
   pthread_t * handle;
 
+  GNUNET_ASSERT(pt != NULL);
   handle = pt->internal;
   if (handle == NULL)
     return NO;
@@ -387,8 +388,10 @@
   int k;
   pthread_t * handle;
 
+  GNUNET_ASSERT(pt != NULL);
   handle = pt->internal;
   GNUNET_ASSERT(handle != NULL);
+  GNUNET_ASSERT(NO == PTHREAD_SELF_TEST(pt));
   switch ((k=pthread_join(*handle, ret))) {
   case 0:
     FREE(handle);





reply via email to

[Prev in Thread] Current Thread [Next in Thread]