| 4291 | |
| 4292 | #ifdef Q_OS_WIN |
| 4293 | void ScintillaEditView::deleteTailFileThread() |
| 4294 | { |
| 4295 | if (m_isInTailStatus) |
| 4296 | { |
| 4297 | m_isInTailStatus = false; |
| 4298 | |
| 4299 | qlonglong threadAddr = this->property(Tail_Thread).toLongLong(); |
| 4300 | |
| 4301 | std::thread* pListenThread = (std::thread*)(threadAddr); |
| 4302 | |
| 4303 | if (pListenThread->joinable()) |
| 4304 | { |
| 4305 | pListenThread->join(); |
| 4306 | } |
| 4307 | |
| 4308 | delete pListenThread; |
| 4309 | } |
| 4310 | } |
| 4311 | #endif |
| 4312 | |
| 4313 | //显示markdown编辑器 |