]> sourceware.org Git - newlib-cygwin.git/commit
cygwin: simplify pthread timedwait handling
authorCorinna Vinschen <corinna@vinschen.de>
Thu, 3 Aug 2017 17:08:31 +0000 (19:08 +0200)
committerCorinna Vinschen <corinna@vinschen.de>
Thu, 3 Aug 2017 17:08:31 +0000 (19:08 +0200)
commit68217c3178dc897a6fce97ff99c3c3b07e638c65
tree03a694429b631ad7bf68defadf81cf77ad259beb
parenta346a26790d005f68c21e0b6fffcbf81ea2181da
cygwin: simplify pthread timedwait handling

- Introduce inline helper pthread_convert_abstime.  It converts
  an absolute timespec to a Windows LARGE_INTEGER timestamp,
  depending on the used clock.

- Use this function from pthread_cond_timedwait and semaphore::timedwait

- Merge semaphore::_wait and semaphore::_timedwait into single _wait
  method, taking a LARGER_INTEGER timestamp.

Signed-off-by: Corinna Vinschen <corinna@vinschen.de>
winsup/cygwin/thread.cc
winsup/cygwin/thread.h
This page took 0.028366 seconds and 5 git commands to generate.