Skip to content

Commit

Permalink
remove AutoDisallowEvents disallow("TaskQueue::~TaskQueue") (#787)
Browse files Browse the repository at this point in the history
  • Loading branch information
Domiii committed Jul 2, 2023
1 parent 645762a commit fd4f41b
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions base/task/sequence_manager/task_queue.cc
Original file line number Diff line number Diff line change
Expand Up @@ -137,12 +137,9 @@ TaskQueue::TaskQueue(std::unique_ptr<internal::TaskQueueImpl> impl,
}

TaskQueue::~TaskQueue() {
recordreplay::UnregisterPointer(this);

// Because the refcount is threadsafe, destruction can happen at non-deterministic points.
recordreplay::AutoDisallowEvents disallow("TaskQueue::~TaskQueue");

ShutdownTaskQueueGracefully();

recordreplay::UnregisterPointer(this);
}

void TaskQueue::ShutdownTaskQueueGracefully() {
Expand Down

0 comments on commit fd4f41b

Please sign in to comment.