Browse Source

Removed unnecessary debug_start_mutex

merge-requests/365/head
eidheim 10 years ago
parent
commit
ac9cff4611
  1. 2
      src/project.cc
  2. 2
      src/project.h

2
src/project.cc

@ -354,7 +354,6 @@ void Project::Clang::debug_start() {
auto options_it=debug_options.find(project_path->string()); auto options_it=debug_options.find(project_path->string());
if(options_it!=debug_options.end() && options_it->second.remote_enabled.get_active()) if(options_it!=debug_options.end() && options_it->second.remote_enabled.get_active())
remote_host=options_it->second.remote_host.get_text(); remote_host=options_it->second.remote_host.get_text();
std::unique_lock<std::mutex> lock(debug_start_mutex);
Debug::LLDB::get().start(*run_arguments, *project_path, breakpoints, [this, run_arguments](int exit_status){ Debug::LLDB::get().start(*run_arguments, *project_path, breakpoints, [this, run_arguments](int exit_status){
debugging=false; debugging=false;
Terminal::get().async_print(*run_arguments+" returned: "+std::to_string(exit_status)+'\n'); Terminal::get().async_print(*run_arguments+" returned: "+std::to_string(exit_status)+'\n');
@ -554,7 +553,6 @@ void Project::Clang::debug_write(const std::string &buffer) {
} }
void Project::Clang::debug_cancel() { void Project::Clang::debug_cancel() {
std::unique_lock<std::mutex> lock(debug_start_mutex);
Debug::LLDB::get().cancel(); Debug::LLDB::get().cancel();
} }
#endif #endif

2
src/project.h

@ -4,7 +4,6 @@
#include <gtkmm.h> #include <gtkmm.h>
#include <boost/filesystem.hpp> #include <boost/filesystem.hpp>
#include <atomic> #include <atomic>
#include <mutex>
#include <unordered_map> #include <unordered_map>
#include "tooltips.h" #include "tooltips.h"
#include "dispatcher.h" #include "dispatcher.h"
@ -85,7 +84,6 @@ namespace Project {
void compile() override; void compile() override;
void compile_and_run() override; void compile_and_run() override;
std::mutex debug_start_mutex;
#ifdef JUCI_ENABLE_DEBUG #ifdef JUCI_ENABLE_DEBUG
std::pair<std::string, std::string> debug_get_run_arguments() override; std::pair<std::string, std::string> debug_get_run_arguments() override;
Gtk::Popover *debug_get_options() override; Gtk::Popover *debug_get_options() override;

Loading…
Cancel
Save