mirror of
https://github.com/tuxbox-neutrino/neutrino.git
synced 2025-08-31 01:11:12 +02:00
zapit/include/zapit/femanager.h: change mutex to recursive, add Lock/Unlock
This commit is contained in:
@@ -29,7 +29,7 @@
|
|||||||
#include <zapit/frontend_c.h>
|
#include <zapit/frontend_c.h>
|
||||||
#include <map>
|
#include <map>
|
||||||
|
|
||||||
#include <OpenThreads/Mutex>
|
#include <OpenThreads/ReentrantMutex>
|
||||||
|
|
||||||
#define MAX_FE 4
|
#define MAX_FE 4
|
||||||
#define MAX_ADAPTERS 1
|
#define MAX_ADAPTERS 1
|
||||||
@@ -85,7 +85,7 @@ class CFEManager
|
|||||||
bool have_sat;
|
bool have_sat;
|
||||||
bool have_cable;
|
bool have_cable;
|
||||||
bool have_locked;
|
bool have_locked;
|
||||||
OpenThreads::Mutex mutex;
|
OpenThreads::ReentrantMutex mutex;
|
||||||
|
|
||||||
std::vector<CFeDmx> dmap;
|
std::vector<CFeDmx> dmap;
|
||||||
|
|
||||||
@@ -142,5 +142,8 @@ class CFEManager
|
|||||||
bool haveCable() { return have_cable; }
|
bool haveCable() { return have_cable; }
|
||||||
bool satOnly() { return (have_sat && !have_cable); }
|
bool satOnly() { return (have_sat && !have_cable); }
|
||||||
bool cableOnly() { return (have_cable && !have_sat); }
|
bool cableOnly() { return (have_cable && !have_sat); }
|
||||||
|
void Lock() { mutex.lock(); }
|
||||||
|
void Unlock() { mutex.unlock(); }
|
||||||
|
|
||||||
};
|
};
|
||||||
#endif /* __femanager_h__ */
|
#endif /* __femanager_h__ */
|
||||||
|
Reference in New Issue
Block a user