Skip to content

[upstreaming] Revert all changes from llvm::once_flag to std::once_flag #124

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion lldb/source/Host/common/Editline.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1197,7 +1197,7 @@ Editline::Editline(const char *editline_name, FILE *input_file,
if (term_fd != -1) {
static std::mutex *g_init_terminal_fds_mutex_ptr = nullptr;
static std::set<int> *g_init_terminal_fds_ptr = nullptr;
static std::once_flag g_once_flag;
static llvm::once_flag g_once_flag;
llvm::call_once(g_once_flag, [&]() {
g_init_terminal_fds_mutex_ptr =
new std::mutex(); // NOTE: Leak to avoid C++ destructor chain issues
Expand Down
2 changes: 1 addition & 1 deletion lldb/source/Plugins/Language/ObjC/ObjCLanguage.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -863,7 +863,7 @@ static void LoadCoreMediaFormatters(TypeCategoryImplSP objc_category_sp) {
}

lldb::TypeCategoryImplSP ObjCLanguage::GetFormatters() {
static std::once_flag g_initialize;
static llvm::once_flag g_initialize;
static TypeCategoryImplSP g_category;

llvm::call_once(g_initialize, [this]() -> void {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3593,7 +3593,7 @@ void ProcessGDBRemote::KillDebugserverProcess() {
}

void ProcessGDBRemote::Initialize() {
static std::once_flag g_once_flag;
static llvm::once_flag g_once_flag;

llvm::call_once(g_once_flag, []() {
PluginManager::RegisterPlugin(GetPluginNameStatic(),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ void ScriptInterpreterNone::ExecuteInterpreterLoop() {
}

void ScriptInterpreterNone::Initialize() {
static std::once_flag g_once_flag;
static llvm::once_flag g_once_flag;

llvm::call_once(g_once_flag, []() {
PluginManager::RegisterPlugin(GetPluginNameStatic(),
Expand Down