llvm-project/clang-tools-extra/clangd/support
Tim Northover 48c68a630e Recommit: Support: add llvm::thread class that supports specifying stack size.
This adds a new llvm::thread class with the same interface as std::thread
except there is an extra constructor that allows us to set the new thread's
stack size. On Darwin even the default size is boosted to 8MB to match the main
thread.

It also switches all users of the older C-style `llvm_execute_on_thread` API
family over to `llvm::thread` followed by either a `detach` or `join` call and
removes the old API.

Moved definition of DefaultStackSize into the .cpp file to hopefully
fix the build on some (GCC-6?) machines.
2021-07-08 16:22:26 +01:00
..
CMakeLists.txt [clangd] CMake: express -Iclangd/ at top level and inherit 2021-07-02 09:52:36 +02:00
Cancellation.cpp
Cancellation.h
Context.cpp
Context.h [clangd] Remove references to old future-based API. NFC 2021-01-31 12:13:20 +01:00
FileCache.cpp [clangd] Extract common file-caching logic from ConfigProvider. 2020-11-25 12:09:13 +01:00
FileCache.h [clangd] Use TimePoint<> instead of system_clock::time_point, it does matter after all. 2020-11-25 12:49:24 +01:00
Function.h clang-extra: fix incorrect use of std::lock_guard by adding variable name (identified by MSVC [[nodiscard]] error) 2021-02-02 06:02:59 +01:00
Logger.cpp [clangd] Add -log=public to redact all request info from index server logs 2020-11-02 21:25:12 +01:00
Logger.h [clangd] Add -log=public to redact all request info from index server logs 2020-11-02 21:25:12 +01:00
Markup.cpp [clangd] NFC: Use SmallVector<T> where possible 2020-12-10 13:36:49 +01:00
Markup.h
MemoryTree.cpp [clangd] Add a metric for tracking memory usage 2020-10-12 15:25:29 +02:00
MemoryTree.h [clangd] Add a metric for tracking memory usage 2020-10-12 15:25:29 +02:00
Path.cpp [clang-tools-extra] Rename StringRef _lower() method calls to _insensitive() 2021-06-25 00:22:01 +03:00
Path.h [clangd] Expose absoluteParent helper 2021-02-19 13:40:21 +01:00
Shutdown.cpp
Shutdown.h
Threading.cpp Recommit: Support: add llvm::thread class that supports specifying stack size. 2021-07-08 16:22:26 +01:00
Threading.h [clangd][iwyu] explicitly includes `<atomic>` 2021-07-04 06:00:39 +00:00
ThreadsafeFS.cpp ADT: Allow IntrusiveRefCntPtr construction from std::unique_ptr, NFC 2020-12-08 17:33:19 -08:00
ThreadsafeFS.h [clangd] Suppress GCC -Woverloaded-virtual by renaming ThreadsafeFS extension point 2020-06-30 15:06:15 +02:00
Trace.cpp [clangd] Replace usages of dummy with more descriptive words 2021-03-22 12:49:24 +01:00
Trace.h [clangd] Add a helper for exposing tracer status 2020-10-12 15:25:29 +02:00