MCPcopy Create free account
hub / github.com/9miao/CrossApp / WsThreadHelper

Method WsThreadHelper

CrossApp/support/network/WebSocket.cpp:81–91  ·  view source on GitHub ↗

Implementation of WsThreadHelper

Source from the content-addressed store, hash-verified

79
80// Implementation of WsThreadHelper
81WsThreadHelper::WsThreadHelper()
82: _ws(NULL)
83, _needQuit(false)
84{
85 _UIWsMessageQueue = new std::list<WsMessage*>();
86 pthread_mutex_init(&_UIWsMessageQueueMutex, NULL);
87 _subThreadWsMessageQueue = new std::list<WsMessage*>();
88 pthread_mutex_init(&_subThreadWsMessageQueueMutex, NULL);
89
90 CAScheduler::schedule(schedule_selector(WsThreadHelper::update), this, 0, false);
91}
92
93WsThreadHelper::~WsThreadHelper()
94{

Callers

nothing calls this directly

Calls 2

pthread_mutex_initFunction · 0.85
scheduleFunction · 0.85

Tested by

no test coverage detected