OSDN Git Service

clean up access to mutex type in pthread_mutex_trylock
authorRich Felker <dalias@aerifal.cx>
Fri, 29 Mar 2019 19:49:14 +0000 (15:49 -0400)
committerRich Felker <dalias@aerifal.cx>
Fri, 29 Mar 2019 19:49:14 +0000 (15:49 -0400)
commit2142cafdc7692428b5f993fe211279d1ed2e7271
treeda35f800b9c881471e3c8ce4843605dd7d563c65
parent54316a52b2119edf73e274c8b4f25d7757f7b4d3
clean up access to mutex type in pthread_mutex_trylock

there was no point in masking off the pshared bit when first loading
the type, since every subsequent access involves a mask anyway. not
masking it may avoid a subsequent load to check the pshared flag, and
it's just simpler.
src/thread/pthread_mutex_trylock.c