cygwin: Implement pthread_mutex_timedlock

- pthread_mutex::lock now takes a PLARGE_INTEGER timeout pointer
  and uses that in the call to cygwait.

Signed-off-by: Corinna Vinschen <corinna@vinschen.de>
This commit is contained in:
Corinna Vinschen
2017-08-03 19:13:21 +02:00
parent 68217c3178
commit 37738448a0
5 changed files with 35 additions and 4 deletions

View File

@@ -267,7 +267,7 @@ public:
static bool is_initializer_or_object (pthread_mutex_t const *);
static bool is_initializer_or_bad_object (pthread_mutex_t const *);
int lock ();
int lock (PLARGE_INTEGER timeout = NULL);
int trylock ();
int unlock ();
int destroy ();