diff options
Diffstat (limited to 'include/llvm')
-rw-r--r-- | include/llvm/Support/ManagedStatic.h | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/include/llvm/Support/ManagedStatic.h b/include/llvm/Support/ManagedStatic.h index 7eecce3241..619cc20552 100644 --- a/include/llvm/Support/ManagedStatic.h +++ b/include/llvm/Support/ManagedStatic.h @@ -96,8 +96,10 @@ public: /// llvm_start_multithreaded - Allocate and initialize structures needed to -/// make LLVM safe for multithreading. -void llvm_start_multithreaded(); +/// make LLVM safe for multithreading. The return value indicates whether +/// multithreaded initialization succeeded. LLVM will still be operational +/// on "failed" return, but will not be safe to run multithreaded. +bool llvm_start_multithreaded(); /// llvm_shutdown - Deallocate and destroy all ManagedStatic variables. void llvm_shutdown(); |