OSDN Git Service

Properly detect timeout in pthread_mutex_lock_timeout_np_impl
authorKen Mixter <kmixter@google.com>
Tue, 17 Dec 2013 20:40:08 +0000 (12:40 -0800)
committerKen Mixter <kmixter@google.com>
Tue, 17 Dec 2013 22:26:01 +0000 (14:26 -0800)
commit4fae14f3335375714be3104742fa69fe65b02001
treebdf4e9cd74914f6b6a506ee1a65ac0634a556f73
parent3377165387d455d4cb56807a9c02cd2ece6cb24b
Properly detect timeout in pthread_mutex_lock_timeout_np_impl

Previously we were checking against a positive errno which
would not be returned from a system call.

Change-Id: I8e3a36f6fbf5ccc2191a152a1def37e2d6f93124
libc/bionic/pthread_mutex.cpp