mirror of
https://github.com/capstone-engine/llvm-capstone.git
synced 2025-02-23 03:35:09 +00:00
Fix -DLLVM_ENABLE_THREADS=OFF build after r302748
llvm-svn: 302806
This commit is contained in:
parent
07e315e780
commit
905da7458b
@ -127,6 +127,7 @@ Executor *Executor::getDefaultExecutor() {
|
||||
#endif
|
||||
}
|
||||
|
||||
#if LLVM_ENABLE_THREADS
|
||||
void parallel::detail::TaskGroup::spawn(std::function<void()> F) {
|
||||
L.inc();
|
||||
Executor::getDefaultExecutor()->add([&, F] {
|
||||
@ -134,3 +135,4 @@ void parallel::detail::TaskGroup::spawn(std::function<void()> F) {
|
||||
L.dec();
|
||||
});
|
||||
}
|
||||
#endif
|
||||
|
Loading…
x
Reference in New Issue
Block a user