slow & highly contentious implementation of barriers using more basic sync primitives; fall back if sync barriers not present in win32 version

This commit is contained in:
Ryan Fleury
2026-05-12 13:48:57 -07:00
parent 641a7c8b30
commit d4623a7ddf
8 changed files with 230 additions and 25 deletions
+22
View File
@@ -56,6 +56,28 @@ rb_thread_entry_point(void *p)
log_select(log);
log_scope_begin();
#if 0
ProfScope("work")
{
for(int i = 0; i < 5; i += 1)
{
int sum = 0;
ProfScope("do work")
{
for(int x = 0; x < 10000; x += 1)
{
for(int y = 0; y < 10000; y += 1)
{
sum += x*y + x-y;
}
}
}
lane_sync();
}
}
abort_self(0);
#endif
//////////////////////////////
//- rjf: set up shared state
//