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 7247da5 commit 8a59713Copy full SHA for 8a59713
src/embed_tests/Modules.cs
@@ -347,6 +347,7 @@ public void TestThread()
347
{
348
//ps.GetVariable<dynamic>("update")(); //call the scope function dynamicly
349
_ps.update();
350
+ Thread.MemoryBarrier();
351
}
352
});
353
th.Start();
@@ -357,12 +358,14 @@ public void TestThread()
357
358
359
using (Py.GIL())
360
361
362
cnt = ps.Get<int>("th_cnt");
363
364
Thread.Yield();
365
366
367
368
369
var result = ps.Get<int>("res");
370
Assert.AreEqual(101 * th_cnt, result);
371
0 commit comments