Implementation of WsThreadHelper
| 79 | |
| 80 | // Implementation of WsThreadHelper |
| 81 | WsThreadHelper::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 | |
| 93 | WsThreadHelper::~WsThreadHelper() |
| 94 | { |
nothing calls this directly
no test coverage detected