mirror of
https://github.com/MaskRay/ccls.git
synced 2024-11-26 01:21:57 +00:00
Set code completion thread name
This commit is contained in:
parent
6737599c11
commit
4a4315d7a1
@ -1,6 +1,7 @@
|
||||
#include "code_completion.h"
|
||||
|
||||
#include "libclangmm/Utility.h"
|
||||
#include "platform.h"
|
||||
#include "timer.h"
|
||||
|
||||
#include <algorithm>
|
||||
@ -369,6 +370,7 @@ void CompletionSession::Refresh(std::vector<CXUnsavedFile>& unsaved) {
|
||||
CompletionManager::CompletionManager(IndexerConfig* config, Project* project, WorkingFiles* working_files)
|
||||
: config(config), project(project), working_files(working_files) {
|
||||
new std::thread([&]() {
|
||||
SetCurrentThreadName("completion");
|
||||
CompletionMain(this);
|
||||
});
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user