mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-06-17 02:49:34 -04:00
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:
parent
85667a2ae9
commit
ea3311eb2a
5 changed files with 26 additions and 23 deletions
|
@ -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); }
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue