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:
@@ -42,8 +42,7 @@ namespace StgSharp.Threading
|
||||
public class FrameworkSyncContext : SynchronizationContext
|
||||
{
|
||||
|
||||
private static readonly FrameworkSyncContext _mainThreadContext = new FrameworkSyncContext(
|
||||
);
|
||||
private static readonly FrameworkSyncContext _mainThreadContext = new FrameworkSyncContext();
|
||||
|
||||
private readonly BlockingCollection<SendOrPostCallback> _syncContexts = new BlockingCollection<SendOrPostCallback>(
|
||||
);
|
||||
@@ -67,9 +66,11 @@ namespace StgSharp.Threading
|
||||
|
||||
public override void Send( SendOrPostCallback d, object state )
|
||||
{
|
||||
if( Thread.CurrentThread == _mainThread ) {
|
||||
if( Thread.CurrentThread == _mainThread )
|
||||
{
|
||||
d( state );
|
||||
} else {
|
||||
} else
|
||||
{
|
||||
Post( d, state );
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user