From c0c815e887d72414894930b62221acc32488c2d0 Mon Sep 17 00:00:00 2001 From: Daniel Dunbar Date: Tue, 17 Aug 2010 22:32:34 +0000 Subject: CrashRecovery: Make CrashRecoveryContext static methods thread safe. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@111307 91177308-0d34-0410-b5e6-96231b3b80d8 --- include/llvm/Support/CrashRecoveryContext.h | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'include/llvm') diff --git a/include/llvm/Support/CrashRecoveryContext.h b/include/llvm/Support/CrashRecoveryContext.h index d44d24ac95..45a43fa195 100644 --- a/include/llvm/Support/CrashRecoveryContext.h +++ b/include/llvm/Support/CrashRecoveryContext.h @@ -47,12 +47,10 @@ public: CrashRecoveryContext() : Impl(0) {} ~CrashRecoveryContext(); - /// \brief Enable crash recovery. This function is not thread safe, clients - /// should call it during startup or with a lock held. + /// \brief Enable crash recovery. static void Enable(); - /// \brief Disable crash recovery. This function is not thread safe, clients - /// should call it during startup or with a lock held. + /// \brief Disable crash recovery. static void Disable(); /// \brief Execute the provide callback function (with the given arguments) in -- cgit v1.2.3