Tweaked bitdht interface to remove need for double entry to libbitdht.

* made PeerCallback() pass a bdId rather than a bdNodeId.
 * disabled recursive mutex to test!.



git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@3857 b45a01b8-16f6-495d-af2f-9b41ad6348cc
This commit is contained in:
drbob 2010-11-23 00:02:54 +00:00
parent 85667a2ae9
commit ea3311eb2a
5 changed files with 26 additions and 23 deletions

View file

@ -39,6 +39,7 @@ class bdMutex
bdMutex(bool recursive = false)
{
#if 0 // TESTING WITHOUT RECURSIVE
if(recursive)
{
pthread_mutexattr_t att ;
@ -51,6 +52,7 @@ class bdMutex
else
if( pthread_mutex_init(&realMutex, NULL))
std::cerr << "ERROR: Could not initialize mutex !" << std::endl ;
#endif
}
~bdMutex() { pthread_mutex_destroy(&realMutex); }