summaryrefslogtreecommitdiff
path: root/src/unistd/pread.c
diff options
context:
space:
mode:
authorRich Felker <dalias@aerifal.cx>2011-03-30 09:06:00 -0400
committerRich Felker <dalias@aerifal.cx>2011-03-30 09:06:00 -0400
commit02084109f0f0d6e0a7fe4a8cb3a90a422725e264 (patch)
treed0c40b22c52dc87c62de4848f77d1bf48bf343fb /src/unistd/pread.c
parent124b4ebc8a293e616cc0a7eaba3587c9b7ff13ec (diff)
downloadmusl-02084109f0f0d6e0a7fe4a8cb3a90a422725e264.tar.gz
musl-02084109f0f0d6e0a7fe4a8cb3a90a422725e264.tar.bz2
musl-02084109f0f0d6e0a7fe4a8cb3a90a422725e264.tar.xz
musl-02084109f0f0d6e0a7fe4a8cb3a90a422725e264.zip
streamline mutex unlock to remove a useless branch, use a_store to unlock
this roughly halves the cost of pthread_mutex_unlock, at least for non-robust, normal-type mutexes. the a_store change is in preparation for future support of archs which require a memory barrier or special atomic store operation, and also should prevent the possibility of the compiler misordering writes.
Diffstat (limited to 'src/unistd/pread.c')
0 files changed, 0 insertions, 0 deletions