23 QList<TorcDeviceHandler*> TorcDeviceHandler::gTorcDeviceHandlers;
25 QMutex* TorcDeviceHandler::gTorcDeviceHandlersLock =
new QMutex(QMutex::Recursive);
28 : m_handlerLock(QReadWriteLock::Recursive),
29 m_nextTorcDeviceHandler(nullptr)
31 QMutexLocker lock(gTorcDeviceHandlersLock);
32 m_nextTorcDeviceHandler = gTorcDeviceHandler;
33 gTorcDeviceHandler =
this;
38 return m_nextTorcDeviceHandler;
43 return gTorcDeviceHandler;
static TorcDeviceHandler * GetDeviceHandler(void)
static void Start(const QVariantMap &Details)
virtual void Create(const QVariantMap &Details)=0
TorcDeviceHandler * GetNextHandler(void)
virtual void Destroy(void)=0