[PR #3488] [MERGED] Revert locking changes #25389

Open
opened 2026-01-31 09:09:13 +00:00 by claunia · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/microsoft/terminal/pull/3488
Author: @miniksa
Created: 11/8/2019
Status: ✅ Merged
Merged: 11/8/2019
Merged by: @miniksa

Base: master ← Head: dev/miniksa/undo-lock


📝 Commits (1)

  • 1dc0275 Revert "Rework locking and eventing during startup and shutdown to alleviate some VT issues (#2525)"

📊 Changes

33 files changed (+290 additions, -480 deletions)

View changed files

📝 src/host/PtySignalInputThread.cpp (+54 -22)
📝 src/host/PtySignalInputThread.hpp (+3 -5)
📝 src/host/VtInputThread.cpp (+38 -82)
📝 src/host/VtInputThread.hpp (+5 -11)
📝 src/host/VtIo.cpp (+65 -88)
📝 src/host/VtIo.hpp (+8 -7)
📝 src/host/ft_host/Host.FeatureTests.vcxproj (+0 -1)
📝 src/host/ft_host/Host.FeatureTests.vcxproj.filters (+0 -3)
📝 src/host/ft_host/sources (+0 -1)
📝 src/host/globals.h (+1 -2)
📝 src/host/output.cpp (+11 -12)
📝 src/host/srvinit.cpp (+6 -10)
📝 src/host/ut_host/VtIoTests.cpp (+4 -31)
📝 src/host/ut_host/VtRendererTests.cpp (+14 -20)
➕ src/inc/ITerminalOwner.hpp (+33 -0)
📝 src/inc/LibraryIncludes.h (+0 -1)
📝 src/interactivity/onecore/ConIoSrvComm.cpp (+1 -1)
📝 src/interactivity/onecore/ConsoleInputThread.cpp (+1 -1)
📝 src/interactivity/win32/windowio.cpp (+7 -11)
📝 src/interactivity/win32/windowproc.cpp (+9 -49)

...and 13 more files

📄 Description

Summary of the Pull Request

This reverts #2525 because it caused numerous issues in the Windows inbox product around WSL. We'll have to revisit it in the future.

PR Checklist

Detailed Description of the Pull Request / Additional comments

Several odd crashes started occurring in Windows, WSL was no longer able to reliably pull the last bytes out of the output during interop operations, and a few other things. We had to revert this for 20h1. This is just the reflection of the Windows-side change back to the outside.

We plan to get back to #1810 in the future, adding more tests around WSL, and probably slightly reducing scope on the locking changes.

Validation Steps Performed

Windows builds validated this.
I've validated the changes back locally.
WSL team validated the revert fixes their 20h1 inbox issues.
The automated tests will run when I push this.


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/microsoft/terminal/pull/3488 **Author:** [@miniksa](https://github.com/miniksa) **Created:** 11/8/2019 **Status:** ✅ Merged **Merged:** 11/8/2019 **Merged by:** [@miniksa](https://github.com/miniksa) **Base:** `master` ← **Head:** `dev/miniksa/undo-lock` --- ### 📝 Commits (1) - [`1dc0275`](https://github.com/microsoft/terminal/commit/1dc02754db7c85c7ece1fa3727670a7b4d92a30e) Revert "Rework locking and eventing during startup and shutdown to alleviate some VT issues (#2525)" ### 📊 Changes **33 files changed** (+290 additions, -480 deletions) <details> <summary>View changed files</summary> 📝 `src/host/PtySignalInputThread.cpp` (+54 -22) 📝 `src/host/PtySignalInputThread.hpp` (+3 -5) 📝 `src/host/VtInputThread.cpp` (+38 -82) 📝 `src/host/VtInputThread.hpp` (+5 -11) 📝 `src/host/VtIo.cpp` (+65 -88) 📝 `src/host/VtIo.hpp` (+8 -7) 📝 `src/host/ft_host/Host.FeatureTests.vcxproj` (+0 -1) 📝 `src/host/ft_host/Host.FeatureTests.vcxproj.filters` (+0 -3) 📝 `src/host/ft_host/sources` (+0 -1) 📝 `src/host/globals.h` (+1 -2) 📝 `src/host/output.cpp` (+11 -12) 📝 `src/host/srvinit.cpp` (+6 -10) 📝 `src/host/ut_host/VtIoTests.cpp` (+4 -31) 📝 `src/host/ut_host/VtRendererTests.cpp` (+14 -20) ➕ `src/inc/ITerminalOwner.hpp` (+33 -0) 📝 `src/inc/LibraryIncludes.h` (+0 -1) 📝 `src/interactivity/onecore/ConIoSrvComm.cpp` (+1 -1) 📝 `src/interactivity/onecore/ConsoleInputThread.cpp` (+1 -1) 📝 `src/interactivity/win32/windowio.cpp` (+7 -11) 📝 `src/interactivity/win32/windowproc.cpp` (+9 -49) _...and 13 more files_ </details> ### 📄 Description <!-- Enter a brief description/summary of your PR here. What does it fix/what does it change/how was it tested (even manually, if necessary)? --> ## Summary of the Pull Request This reverts #2525 because it caused numerous issues in the Windows inbox product around WSL. We'll have to revisit it in the future. <!-- Please review the items on the PR checklist before submitting--> ## PR Checklist * [x] Reopens #1810 * [x] I work here * [x] Tests removed, the rest still pass * [x] No, the doc update we made is still relevant. * [x] I'm a core contributor. <!-- Provide a more detailed description of the PR, other things fixed or any additional comments/features here --> ## Detailed Description of the Pull Request / Additional comments Several odd crashes started occurring in Windows, WSL was no longer able to reliably pull the last bytes out of the output during interop operations, and a few other things. We had to revert this for 20h1. This is just the reflection of the Windows-side change back to the outside. We plan to get back to #1810 in the future, adding more tests around WSL, and probably slightly reducing scope on the locking changes. <!-- Describe how you validated the behavior. Add automated tests wherever possible, but list manual validation steps taken as well --> ## Validation Steps Performed Windows builds validated this. I've validated the changes back locally. WSL team validated the revert fixes their 20h1 inbox issues. The automated tests will run when I push this. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
claunia added the pull-request label 2026-01-31 09:09:13 +00:00
Sign in to join this conversation.
No Label pull-request
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/terminal#25389