1. 17 Jan, 2017 1 commit
  2. 03 Jan, 2017 1 commit
  3. 28 Dec, 2016 1 commit
  4. 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
  5. 01 Mar, 2016 1 commit
  6. 25 Aug, 2015 1 commit
  7. 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
  8. 02 Jul, 2014 1 commit
  9. 18 Feb, 2014 1 commit
  10. 16 Apr, 2013 1 commit
  11. 10 Jan, 2013 2 commits
  12. 07 Jan, 2013 1 commit
  13. 24 Jan, 2012 1 commit
  14. 29 Jan, 2011 1 commit
  15. 01 Jan, 2010 1 commit
  16. 31 Dec, 2009 1 commit