mirror of
https://github.com/gui-cs/Terminal.Gui.git
synced 2025-12-26 07:47:54 +01:00
Annotate concurrency problem
This commit is contained in:
@@ -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;
|
||||
|
||||
@@ -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">(?<=\W|^)(?<TAG>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>
|
||||
|
||||
Reference in New Issue
Block a user