[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[GNUnet-SVN] r5129 - GNUnet/src/applications/dht/module
From: |
gnunet |
Subject: |
[GNUnet-SVN] r5129 - GNUnet/src/applications/dht/module |
Date: |
Sat, 23 Jun 2007 16:55:21 -0600 (MDT) |
Author: grothoff
Date: 2007-06-23 16:55:19 -0600 (Sat, 23 Jun 2007)
New Revision: 5129
Modified:
GNUnet/src/applications/dht/module/table.c
Log:
fixing deadlock
Modified: GNUnet/src/applications/dht/module/table.c
===================================================================
--- GNUnet/src/applications/dht/module/table.c 2007-06-23 13:12:19 UTC (rev
5128)
+++ GNUnet/src/applications/dht/module/table.c 2007-06-23 22:55:19 UTC (rev
5129)
@@ -562,7 +562,7 @@
P2P_hello_MESSAGE * hello;
bucket = findBucketFor(peer);
- if (bucket == NULL)
+ if (bucket == NULL)
return; /* peers[i] == self */
if (bucket->peers_size >= MAINTAIN_BUCKET_SIZE)
checkExpiration(bucket);
@@ -695,7 +695,7 @@
buckets[i].bstart = 512 * i / bucketCount;
buckets[i].bend = 512 * (i+1) / bucketCount;
}
- lock = MUTEX_CREATE(YES);
+ lock = capi->getConnectionModuleLock();
stats = capi->requestService("stats");
if (stats != NULL) {
stat_dht_total_peers = stats->create(gettext_noop("# dht connections"));
@@ -754,7 +754,7 @@
GROW(buckets,
bucketCount,
0);
- MUTEX_DESTROY(lock);
+ lock = NULL;
return OK;
}
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [GNUnet-SVN] r5129 - GNUnet/src/applications/dht/module,
gnunet <=