Branch: refs/heads/master
  Home:   https://github.com/STEllAR-GROUP/hpx
  Commit: fe430eee68cd033490cc1e8907af9a5beef4b3a9
      
https://github.com/STEllAR-GROUP/hpx/commit/fe430eee68cd033490cc1e8907af9a5beef4b3a9
  Author: John Biddiscombe <biddi...@cscs.ch>
  Date:   2020-02-24 (Mon, 24 Feb 2020)

  Changed paths:
    M hpx/runtime/threads/detail/scheduled_thread_pool.hpp
    M hpx/runtime/threads/detail/scheduled_thread_pool_impl.hpp
    M hpx/runtime/threads/detail/scheduling_loop.hpp
    M hpx/runtime/threads/executors/thread_pool_os_executors.hpp
    M hpx/runtime/threads/policies/local_priority_queue_scheduler.hpp
    M hpx/runtime/threads/policies/local_queue_scheduler.hpp
    M libs/threading_base/include/hpx/threading_base/scheduler_base.hpp
    M libs/threading_base/include/hpx/threading_base/thread_pool_base.hpp
    M libs/threading_base/src/thread_pool_base.cpp
    M libs/threadmanager/include/hpx/threadmanager.hpp
    M src/runtime/threads/thread_pool_suspension_helpers.cpp

  Log Message:
  -----------
  Fix a race condition and clean-up usage of scheduler mode

The pool and the scheduler both kept copies of the scheduler
mode and it was set on startup in different places. Some user
code that wished to set the scheduler mode to a non default
value at the start of hpx_main suffered from a race that allowed
the pool to overwrite the mode flags.

This commit removes the copy of the scheduler mode that was held
by the pool as well as some unnecessary set/get calls to the mode.

This also tidies up a lot of calls to if (get_scheduler_mode() & xxx)
and replaces them with a has_scheduler_mode(xxx) call that makes the
code a little more readable and maintainable.


  Commit: 3a893d43e5c8d4f8c6b247a73b81ed7398c4688f
      
https://github.com/STEllAR-GROUP/hpx/commit/3a893d43e5c8d4f8c6b247a73b81ed7398c4688f
  Author: John Biddiscombe <biddi...@cscs.ch>
  Date:   2020-02-24 (Mon, 24 Feb 2020)

  Changed paths:
    M hpx/runtime/threads/detail/scheduling_loop.hpp
    M hpx/runtime/threads/policies/local_priority_queue_scheduler.hpp
    M src/runtime/threads/thread_pool_suspension_helpers.cpp

  Log Message:
  -----------
  Fix inspect violations


  Commit: a32414d4d7e860e8b09941a503ec87c3e27ace4e
      
https://github.com/STEllAR-GROUP/hpx/commit/a32414d4d7e860e8b09941a503ec87c3e27ace4e
  Author: John Biddiscombe <biddi...@cscs.ch>
  Date:   2020-02-26 (Wed, 26 Feb 2020)

  Changed paths:
    M hpx/runtime/threads/detail/scheduled_thread_pool.hpp
    M hpx/runtime/threads/detail/scheduled_thread_pool_impl.hpp
    M hpx/runtime/threads/detail/scheduling_loop.hpp
    M hpx/runtime/threads/executors/thread_pool_os_executors.hpp
    M hpx/runtime/threads/policies/local_priority_queue_scheduler.hpp
    M hpx/runtime/threads/policies/local_queue_scheduler.hpp
    M libs/threading_base/include/hpx/threading_base/scheduler_base.hpp
    M libs/threading_base/include/hpx/threading_base/thread_pool_base.hpp
    M libs/threading_base/src/thread_pool_base.cpp
    M libs/threadmanager/include/hpx/threadmanager.hpp
    M src/runtime/threads/thread_pool_suspension_helpers.cpp

  Log Message:
  -----------
  Merge pull request #4404 from STEllAR-GROUP/scheduler-mode

Fix a race condition and clean-up usage of scheduler mode


Compare: 
https://github.com/STEllAR-GROUP/hpx/compare/8c2cb705b665...a32414d4d7e8
_______________________________________________
hpx-commits mailing list
hpx-commits@stellar.cct.lsu.edu
https://mail.cct.lsu.edu/mailman/listinfo/hpx-commits

Reply via email to