OverviewFilesCommitsIssuesDocsReleasesPeers

opencog-cogutil commits / c0f03be

Bug-fix another wait issue in new code.
c0f03be35e5f79f3d19b91fab7b4510256fa9c5c
by Linas Vepstas <linasvepstas@gmail.com> · 2025-12-07T03:15:13.000Z

Changed files (2) +2 -0

opencog/util/async_buffer.h +1 -0
……@@ -457,6 +457,7 @@ void async_buffer<Writer, Element>::barrier(const Element& elt)
457457 // Set up the barrier: each thread must process exactly one element
458458 _barrier_remaining = _thread_count;
459459 _barrier_phase++;
460 _barrier_remaining.notify_all(); // Wake workers checking phase condition
460461
461462 // Enqueue one element for each thread.
462463 for (unsigned int i = 0; i < _thread_count; i++)
opencog/util/async_method_caller.h +1 -0
……@@ -371,6 +371,7 @@ void async_caller<Writer, Element>::barrier(const Element& elt)
371371 // Set up the barrier: each thread must process exactly one element
372372 _barrier_remaining = _thread_count;
373373 _barrier_phase++;
374 _barrier_remaining.notify_all(); // Wake workers checking phase condition
374375
375376 // Enqueue one element for each thread.
376377 for (unsigned int i = 0; i < _thread_count; i++)