Daily update on 20250618-051714 by Nitload Youmu. Additional Message : Brief support to collection operation in EXPRESS. A collection type added in core lib and compilestack.

Signed-off-by: Nitload <YoumuLiu_NSI@whv0t.onmicrosoft.com>
This commit is contained in:
Nitload
2025-06-18 05:17:14 +08:00
parent 74c01effe4
commit c624a8ca38
300 changed files with 12227 additions and 4303 deletions
+15 -12
View File
@@ -39,8 +39,7 @@ namespace StgSharp.Timing
public abstract class TimeSourceProviderBase
{
private SemaphoreSlim _addSubscriberSemaphore = new SemaphoreSlim(
1, 1 );
private SemaphoreSlim _addSubscriberSemaphore = new SemaphoreSlim( 1, 1 );
protected SemaphoreSlim CheckSubscriberSemaphore
{
@@ -49,14 +48,17 @@ namespace StgSharp.Timing
public void AddSubscriber( TimeSpanProvider subscriber )
{
try {
try
{
_addSubscriberSemaphore.Wait();
AddSubscriberUnsynced( subscriber );
}
catch( Exception ) {
catch( Exception )
{
throw;
}
finally {
finally
{
_addSubscriberSemaphore.Release();
}
}
@@ -64,13 +66,16 @@ namespace StgSharp.Timing
public void RemoveSubscriber( TimeSpanProvider subscriber )
{
_addSubscriberSemaphore.Wait();
try {
try
{
RemoveSubscriberUnsynced( subscriber );
}
catch( Exception ) {
catch( Exception )
{
throw;
}
finally {
finally
{
_addSubscriberSemaphore.Release();
}
}
@@ -79,11 +84,9 @@ namespace StgSharp.Timing
public abstract void StopProvidingTime();
protected abstract void AddSubscriberUnsynced(
TimeSpanProvider subscriber );
protected abstract void AddSubscriberUnsynced( TimeSpanProvider subscriber );
protected abstract void RemoveSubscriberUnsynced(
TimeSpanProvider subscriber );
protected abstract void RemoveSubscriberUnsynced( TimeSpanProvider subscriber );
}
}