Annotate concurrency problem

This commit is contained in:
Brandon Thetford
2024-02-21 00:25:29 -07:00
parent e653be2c5f
commit 2642b0f042
2 changed files with 4 additions and 1 deletions

View File

@@ -1,4 +1,4 @@
using System.ComponentModel;
using System.ComponentModel;
using System.Diagnostics;
namespace Terminal.Gui;
@@ -553,6 +553,8 @@ public partial class View
/// The view that was found at the <praramref name="x"/> and <praramref name="y"/> coordinates.
/// <see langword="null"/> if no view was found.
/// </returns>
// CONCURRENCY: This method is not thread-safe.
// Undefined behavior and likely program crashes are exposed by unsynchronized access to InternalSubviews.
public static View? FindDeepestView (View? start, int x, int y, out int resultX, out int resultY)
{
resultY = resultX = 0;

View File

@@ -425,4 +425,5 @@
<s:String x:Key="/Default/PatternsAndTemplates/Todo/TodoPatterns/=B0C2F2A1AF61DA42BBF270980E3DCEF7/Name/@EntryValue">Concurrency Issue</s:String>
<s:String x:Key="/Default/PatternsAndTemplates/Todo/TodoPatterns/=B0C2F2A1AF61DA42BBF270980E3DCEF7/Pattern/@EntryValue">(?&lt;=\W|^)(?&lt;TAG&gt;CONCURRENCY)(\W|$)(.*)</s:String>
<s:String x:Key="/Default/PatternsAndTemplates/Todo/TodoPatterns/=B0C2F2A1AF61DA42BBF270980E3DCEF7/TodoIconStyle/@EntryValue">Warning</s:String>
<s:Boolean x:Key="/Default/UserDictionary/Words/=unsynchronized/@EntryIndexedValue">True</s:Boolean>
</wpf:ResourceDictionary>