in pthread_mutex_timedlock, avoid repeatedly reading mutex type field
authorRich Felker <dalias@aerifal.cx>
Wed, 5 Sep 2018 01:31:47 +0000 (21:31 -0400)
committerRich Felker <dalias@aerifal.cx>
Wed, 5 Sep 2018 01:31:47 +0000 (21:31 -0400)
commitd1fa28860634af4f0efd70d533a756b51a45f83e
treeb89bbd7ff3cd84a2021adcf1916ada90c2efc27e
parent4e4a162d9af283cf71f7310c497672e0c2b8ca3b
in pthread_mutex_timedlock, avoid repeatedly reading mutex type field

compiler cannot cache immutable fields of the mutex object across
external calls it can't see, much less across atomics.
src/thread/pthread_mutex_timedlock.c