dist-array/DA-threads example has a thread-safety bug

Issue #365 resolved
Dan Bonachea created an issue

dist-array/DA-threads is currently using a global promise<> p; to signal between worker threads and master thread.

upcxx::promise is not thread-safe, so this is not guaranteed to work. The likely failure mode is a hang at runtime.

Comments (1)

  1. Log in to comment