File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed
src/Uno.Wasm.Threads.Shared Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -83,7 +83,7 @@ void logMessage(string message)
83
83
int index = Interlocked . Increment ( ref counter ) ;
84
84
lock ( _gate )
85
85
{
86
- _messages . Add ( $ "[tid:{ Thread . CurrentThread . ManagedThreadId } ]: { index } / { message } ") ;
86
+ _messages . Add ( $ "[tid:{ Thread . CurrentThread . ManagedThreadId } ][ctx: { SynchronizationContext . Current ? . ToString ( ) } ] : { index } / { message } ") ;
87
87
}
88
88
}
89
89
@@ -103,7 +103,7 @@ void DoWork(string name)
103
103
#pragma warning disable CA1416 // Validate platform compatibility
104
104
new Thread ( _ =>
105
105
{
106
- Console . WriteLine ( $ "Starting thread [tid:{ Thread . CurrentThread . ManagedThreadId } ]") ;
106
+ Console . WriteLine ( $ "Starting thread [tid:{ Thread . CurrentThread . ManagedThreadId } ] [ctx: { SynchronizationContext . Current ? . ToString ( ) } ] ") ;
107
107
108
108
_jsContext . Post ( _ => MainThreadCallback ( ) , null ) ;
109
109
Console . WriteLine ( "InvokeOnMainThread2" ) ;
Original file line number Diff line number Diff line change 3
3
} ) ;
4
4
5
5
var Interop = {
6
- appendResult : async function ( str ) {
6
+ appendResult : function ( str ) {
7
7
var txt = document . createTextNode ( str ) ;
8
8
var parent = document . getElementById ( 'results' ) ;
9
9
parent . appendChild ( txt , parent . lastChild ) ;
You can’t perform that action at this time.
0 commit comments