https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=219399
--- Comment #113 from Don Lewis <truck...@freebsd.org> --- (In reply to Nils Beyer from comment #112) Hmn ... what I though of a bug may not have been a bug after all ... I missed the fact that that main initially set the lock, so the first instance of threadx() should have properly initialized things afterall. With the init code removed, that instance of threadx() just spins on the lock instead of doing the init stuff and then unlocking things and letting the other threads run. In this code in main(): atomic_store(&flg, 1); atomic_store(&locked, 1); change the second line so that locked is initialized to zero. -- You are receiving this mail because: You are the assignee for the bug. _______________________________________________ freebsd-bugs@freebsd.org mailing list https://lists.freebsd.org/mailman/listinfo/freebsd-bugs To unsubscribe, send any mail to "freebsd-bugs-unsubscr...@freebsd.org"