1. 06 Jul, 2018 1 commit
  2. 09 Feb, 2018 2 commits
  3. 08 Jan, 2018 3 commits
  4. 07 Jan, 2018 3 commits
  5. 04 Jan, 2018 1 commit
  6. 12 Dec, 2017 1 commit
  7. 04 Jun, 2017 1 commit
  8. 08 May, 2017 1 commit
  9. 17 Jan, 2017 1 commit
  10. 03 Jan, 2017 4 commits
  11. 29 Dec, 2016 2 commits
  12. 28 Dec, 2016 1 commit
  13. 19 Sep, 2016 1 commit
    • Christian Körner's avatar
      thread/PosixCond: fix timed_wait · 8bbfb5cd
      Christian Körner authored
      pthread_cond_timedwait() in PosixCond.hxx:timed_wait(PosixMutex...) returns
      EINVAL, if ts.tv_nsec >= 1E9. In this case, it returns to early.
      
      Find attached a patch which fixes this. I chose a compare-subtraction method
      to keep ts.tv_nsec below 1E9.
      
      Another option would be
      ts.tv_sec += ts.tv_nsec / 1000000000;
      ts.tv_nsec %= 1000000000;
      
      But I guess this takes more time on some ARM processors, which don't support
      hardware division.
      8bbfb5cd
  14. 04 Sep, 2016 2 commits
  15. 17 Jun, 2016 2 commits
  16. 02 May, 2016 1 commit
  17. 01 Mar, 2016 1 commit
  18. 26 Feb, 2016 1 commit
  19. 19 Feb, 2016 1 commit
  20. 31 Dec, 2015 1 commit
  21. 25 Aug, 2015 2 commits
  22. 21 Jan, 2015 1 commit
  23. 06 Jan, 2015 3 commits
  24. 01 Jan, 2015 1 commit
  25. 08 Dec, 2014 1 commit
  26. 13 Sep, 2014 1 commit
    • Max Kellermann's avatar
      thread/Posix{Cond,Mutex}: don't ues PTHREAD_*_INITIALIZER on NetBSD · e304d0f8
      Max Kellermann authored
      On NetBSD, PTHREAD_MUTEX_INITIALIZER and PTHREAD_COND_INITIALIZER are
      not compatible with C++11 "constexpr" (see Mantis ticket 0004110).  As
      a workaround, don't ues "constexpr", and use the functions
      pthread_mutex_init(), pthread_mutex_destroy(), pthread_cond_init() and
      pthread_cond_destroy() instead.  This adds some runtime overhead, but
      is portable to POSIX implementations that have awkward initializer
      macros.
      e304d0f8