mirror of
https://github.com/mumble-voip/mumble.git
synced 2026-03-03 00:46:56 -05:00
Change use of bRunning thread termination variable to use new interruption API in Qt 5.2 #152
Labels
No labels
GlobalShortcuts
Hacktoberfest
accessibility
acl
asio
audio
bonjour
bsd
bug
build
certificate
ci
client
code
documentation
external-bug
feature-request
gRPC
github
good first issue
help wanted
help-needed
ice
installer
linux
macOS
needs-ckeck-with-latest-version
needs-more-input
overlay
positional audio
priority/P0 - Blocker
priority/P1 - Critical
priority/P2 - Important
priority/P3 - Somewhat important
priority/P4 - Low
public-server-registration
qt
recording
release-management
server
stale-no-response
stale-support
support
task
test
theme
translation
triage
ui
windows
wontfix
x64
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/mumble-mumble-voip#152
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?
Originally created by @mkrautz on GitHub (Jan 22, 2014).
Originally assigned to: @davidebeatrici on GitHub.
This is not a request to change this, it's more of a note.
Qt 5.2 introduces a new API for requesting thread interruptions and observing them.
See https://doc.qt.io/qt-5/qthread.html#isInterruptionRequested and https://doc.qt.io/qt-5/qthread.html#requestInterruption.
Obviously, we can't make use of these new APIs in the current code, but we could implement similar functions by subclassing
QThreadand implementing our own variants for Qt < 5.2.Mumble is currently built for wide variety of arches in, say, Debian, and I think it is a mistake to expect that our current
volatile bool bRunningsolution works without a hitch on the memory models of all of those architectures.Qt's implementation is a bool protected by a
QMutex. Perhaps we should do the same.