mirror of
https://github.com/debauchee/barrier.git
synced 2026-05-15 14:16:02 -06:00
[PR #1370] [CLOSED] Use standard mutex primitives throughout the codebase #1797
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#1797
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/1370
Author: @p12tic
Created: 11/3/2021
Status: ❌ Closed
Base:
master← Head:use-std-mutex📝 Commits (10+)
cd356d7arch: Use standard mutex utilities as underlying implementation9e7982flib: Switch ArchMutexLock to use std::unique_lock behind the scenes8586b0alib/arch: Use standard mutex primitives in BSD network impl62913ablib/barrier: Remove unused codec16581blib/base: Rename m_mutex to mutex_ in EventQueuecb69469lib/base: Use standard mutex primitives in EventQueue27de30elib/base: Use standard mutex primitives in event queue buffercbf22adlib/net: Use standard mutex primitives in socket multiplexer836a65clib/net: Use standard mutex primitives in TCP socket code489f45flib/arch: Add IArchMultithread::wait_cond_var() for standard mutex📊 Changes
52 files changed (+346 additions, -1405 deletions)
View changed files
📝
src/lib/arch/Arch.h(+2 -16)➕
src/lib/arch/IArchMultithread.cpp(+50 -0)📝
src/lib/arch/IArchMultithread.h(+9 -72)📝
src/lib/arch/unix/ArchMultithreadPosix.cpp(+0 -156)📝
src/lib/arch/unix/ArchMultithreadPosix.h(+0 -19)📝
src/lib/arch/unix/ArchNetworkBSD.cpp(+19 -29)📝
src/lib/arch/unix/ArchNetworkBSD.h(+2 -1)📝
src/lib/arch/win32/ArchDaemonWindows.cpp(+14 -34)📝
src/lib/arch/win32/ArchDaemonWindows.h(+4 -2)📝
src/lib/arch/win32/ArchMultithreadWindows.cpp(+33 -186)📝
src/lib/arch/win32/ArchMultithreadWindows.h(+2 -24)📝
src/lib/arch/win32/ArchNetworkWinsock.cpp(+10 -18)📝
src/lib/arch/win32/ArchNetworkWinsock.h(+3 -1)📝
src/lib/arch/win32/ArchTaskBarWindows.cpp(+15 -36)📝
src/lib/arch/win32/ArchTaskBarWindows.h(+4 -2)📝
src/lib/barrier/ClientTaskBarReceiver.cpp(+0 -1)📝
src/lib/barrier/PacketStreamFilter.cpp(+8 -9)📝
src/lib/barrier/PacketStreamFilter.h(+3 -2)📝
src/lib/barrier/PortableTaskBarReceiver.cpp(+0 -1)📝
src/lib/barrier/ServerTaskBarReceiver.cpp(+0 -1)...and 32 more files
📄 Description
This PR replaces homegrown mutex and condition variable classes with what's available in the C++11 standard library. This will reduce maintenance effort going forward.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.