nhttp: change mutex type to recursive

This commit is contained in:
[CST] Focus
2016-02-16 18:54:02 +03:00
parent 10c430d40e
commit ecb5e06128
4 changed files with 23 additions and 17 deletions

View File

@@ -25,7 +25,7 @@ bool _initialize_iso639_map(void);
//-------------------------------------------------------------------------
class CNeutrinoAPI
{
OpenThreads::Mutex mutex;
OpenThreads::Mutex *pmutex;
// Clientlibs
CSectionsdClient *Sectionsd;
CZapitClient *Zapit;
@@ -88,6 +88,8 @@ public:
CChannelEventList eList;
CNeutrinoYParser *NeutrinoYParser;
CControlAPI *ControlAPI;
void Lock() { pmutex->lock(); }
void Unlock() { pmutex->unlock(); }
friend class CNeutrinoYParser; // Backreference
friend class CControlAPI;