@@ -142,11 +142,6 @@ constexpr bool llvm_is_multithreaded() { return LLVM_ENABLE_THREADS; }
142142 // / the thread shall remain on the actual CPU socket.
143143 LLVM_ABI std::optional<unsigned >
144144 compute_cpu_socket (unsigned ThreadPoolNum) const ;
145-
146- // / If true, the thread pool will attempt to coordinate with a GNU Make
147- // / jobserver, acquiring a job slot before processing a task. If no
148- // / jobserver is found in the environment, this is ignored.
149- bool UseJobserver = false ;
150145 };
151146
152147 // / Build a strategy from a number of threads as a string provided in \p Num.
@@ -215,19 +210,6 @@ constexpr bool llvm_is_multithreaded() { return LLVM_ENABLE_THREADS; }
215210 return S;
216211 }
217212
218- // / Returns a thread strategy that attempts to coordinate with a GNU Make
219- // / jobserver. The number of active threads will be limited by the number of
220- // / available job slots. If no jobserver is detected in the environment, this
221- // / strategy falls back to the default hardware_concurrency() behavior.
222- inline ThreadPoolStrategy jobserver_concurrency () {
223- ThreadPoolStrategy S;
224- S.UseJobserver = true ;
225- // We can still request all threads be created, as they will simply
226- // block waiting for a job slot if the jobserver is the limiting factor.
227- S.ThreadsRequested = 0 ; // 0 means 'use all available'
228- return S;
229- }
230-
231213 // / Return the current thread id, as used in various OS system calls.
232214 // / Note that not all platforms guarantee that the value returned will be
233215 // / unique across the entire system, so portable code should not assume
0 commit comments