Fixed up the retroshare message system.

git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@331 b45a01b8-16f6-495d-af2f-9b41ad6348cc
This commit is contained in:
drbob 2008-02-04 17:55:13 +00:00
parent 07a458367b
commit 8527a5e53f
17 changed files with 947 additions and 609 deletions

View file

@ -45,6 +45,17 @@ bool trylock() { return (0 == pthread_mutex_trylock(&realMutex)); }
pthread_mutex_t realMutex;
};
class RsStackMutex
{
public:
RsStackMutex(RsMutex &mtx): mMtx(mtx) { mMtx.lock(); }
~RsStackMutex() { mMtx.unlock(); }
private:
RsMutex &mMtx;
};
class RsThread;
/* to create a thread! */