mirror of
https://github.com/debauchee/barrier.git
synced 2026-05-15 14:16:02 -06:00
[PR #410] [MERGED] Use standard mutex APIs instead of the home-grown wrapper #1628
Labels
No labels
HiDPI
bounty
bsd/freebsd
bsd/openbsd
bug
bug
build-infra
cantfix
critical
doc
duplicate
enhancement
fix-available
from git
from release
good first issue
help wanted
installer/package
invalid
linux
macOS
meta
needs testing
pull-request
query
question
regression
regression
v2.4.0
windows
wontfix
work-in-progress
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: github-starred/barrier#1628
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/debauchee/barrier/pull/410
Author: @p12tic
Created: 8/22/2019
Status: ✅ Merged
Merged: 8/22/2019
Merged by: @AdrianKoshka
Base:
master← Head:use-std-mutex📝 Commits (7)
f71c685Use std::mutex instead of ArchMutex in ArchMultithreadPosix9df4741Use std::mutex instead of ArchMutex in EventQueued9d3904Use std::mutex instead of ArchMutex in Log36f3235Use std::mutex instead of ArchMutex in IpcServer93c04bbUse std::mutex instead of ArchMutex in IpcClientProxy83d0639Use std::mutex instead of ArchMutex in IpcLogOutputterb0e415dFix race condition in IArchString📊 Changes
13 files changed (+124 additions, -151 deletions)
View changed files
📝
src/lib/arch/IArchString.cpp(+7 -19)📝
src/lib/arch/unix/ArchMultithreadPosix.cpp(+56 -62)📝
src/lib/arch/unix/ArchMultithreadPosix.h(+2 -1)📝
src/lib/base/EventQueue.cpp(+11 -13)📝
src/lib/base/EventQueue.h(+2 -3)📝
src/lib/base/Log.cpp(+6 -10)📝
src/lib/base/Log.h(+2 -1)📝
src/lib/ipc/IpcClientProxy.cpp(+7 -12)📝
src/lib/ipc/IpcClientProxy.h(+4 -2)📝
src/lib/ipc/IpcLogOutputter.cpp(+5 -9)📝
src/lib/ipc/IpcLogOutputter.h(+3 -2)📝
src/lib/ipc/IpcServer.cpp(+17 -16)📝
src/lib/ipc/IpcServer.h(+2 -1)📄 Description
This PR replaces some usages of the
ArchMutexclass with the standardstd::mutex. This is the first part of an attempt to replace the internal threading library with the standard alternatives. Some of the APIs are strange and error-prone, it is a kind of tech-debt that is best fixed. The bonus point is that we won't need to maintain all the extra code.🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.