We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e0db677 commit ed485acCopy full SHA for ed485ac
src/dds.net-connector-csharp.lib/Interfaces/SyncQueue/SyncQueue.cs
@@ -19,6 +19,8 @@ internal class SyncQueue<T>
19
private int _nextWriteIndex;
20
private int _nextReadIndex;
21
22
+ public event Action? DataAvailable;
23
+
24
/// <summary>
25
/// Initializes queue with specified size.
26
/// </summary>
@@ -113,6 +115,8 @@ public void Enqueue(T data)
113
115
114
116
Thread.Sleep(SLEEP_TIME_MS_WHEN_DATA_CANNOT_BE_ENQUEUED);
117
}
118
119
+ DataAvailable?.Invoke();
120
121
122
public void Clear()
0 commit comments