Skip to content

Commit

Permalink
minor changes
Browse files Browse the repository at this point in the history
  • Loading branch information
griffi-gh committed Oct 16, 2024
1 parent df74cf8 commit d068c97
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/src/gundo.cc
Original file line number Diff line number Diff line change
Expand Up @@ -146,9 +146,10 @@ void undo_stack::_thread_worker() {
}

void undo_stack::signal_to_run_compressor() {
this->_ensure_thread_running();
tms_debugf("signal_to_run_compressor: enter");
this->m_run_compressor.lock();
this->run_compressor = true;
this->run_compressor = WORKER_RUN;
this->m_run_compressor.unlock();
this->c_run_compressor.notify_all();
tms_debugf("signal_to_run_compressor: leave");
Expand Down Expand Up @@ -209,8 +210,6 @@ void* undo_stack::snapshot_state() {
}

void undo_stack::checkpoint(const char *reason, void *snapshot /* = nullptr */) {
this->_ensure_thread_running();

std::lock_guard<std::mutex> guard_items(this->m_items);

if (!W->paused) {
Expand Down

0 comments on commit d068c97

Please sign in to comment.