<html><head><meta http-equiv="Content-Type" content="text/html; charset=utf-8"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;" class="">Hi all,<div class=""><br class=""></div><div class="">I am wondering about the fact that there is an implementation of asynchronous message queue (ClangdScheduler) in clangd which in principle is similar to what ThreadPool in LLVM Support does. I just wanted to ask what other people think about possibility of using ThreadPool in clangd as we could potentially spare some resources on maintaining only one version. It’s not a lot of code and those two implementations are not exactly the same so some one-time effort would be needed but it still might be worthwhile.</div><div class=""><br class=""></div><div class=""><a href="https://github.com/llvm-mirror/clang-tools-extra/blob/master/clangd/ClangdServer.h" class="">https://github.com/llvm-mirror/clang-tools-extra/blob/master/clangd/ClangdServer.h</a></div><div class=""><a href="https://github.com/llvm-mirror/clang-tools-extra/blob/master/clangd/ClangdServer.h" class="">https://github.com/llvm-mirror/clang-tools-extra/blob/master/clangd/ClangdServer.cpp</a></div><div class=""><br class=""></div><div class=""><a href="https://github.com/llvm-mirror/llvm/blob/master/include/llvm/Support/ThreadPool.h" class="">https://github.com/llvm-mirror/llvm/blob/master/include/llvm/Support/ThreadPool.h</a></div><div class=""><a href="https://github.com/llvm-mirror/llvm/blob/master/lib/Support/ThreadPool.cpp" class="">https://github.com/llvm-mirror/llvm/blob/master/lib/Support/ThreadPool.cpp</a></div><div class=""><br class=""></div><div class=""><br class=""></div><div class="">Regards,</div><div class="">Jan</div></body></html>