mirror of
https://github.com/rivo/tview.git
synced 2026-04-26 05:15:55 +03:00
[PR #985] [CLOSED] Add deadlock guard for Queue{Update,Event} #1099
Labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/tview#1099
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/rivo/tview/pull/985
Author: @diamondburned
Created: 5/8/2024
Status: ❌ Closed
Base:
master← Head:deadlock-guard📝 Commits (1)
986849fAdd deadlock guard for Queue{Update,Event}📊 Changes
2 files changed (+61 additions, -0 deletions)
View changed files
📝
application.go(+13 -0)➕
application_test.go(+48 -0)📄 Description
This commit adds an atomic bool into Application that ensures that the
user can never call QueueUpdate or QueueEvent in the main loop.
Previously, when the user does this, the application would deadlock and
freeze forever. The user would often have to kill the process manually
to get out of this state. Now, the application will panic, indicating
the bug immediately.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.