mirror of
https://github.com/fluencelabs/musl
synced 2025-06-24 20:21:59 +00:00
optimize file locking: avoid cache-polluting writes to global storage
This commit is contained in:
@ -3,7 +3,9 @@
|
||||
|
||||
void flockfile(FILE *f)
|
||||
{
|
||||
pthread_self();
|
||||
libc.lockfile = __lockfile;
|
||||
if (!libc.lockfile) {
|
||||
pthread_self();
|
||||
libc.lockfile = __lockfile;
|
||||
}
|
||||
__lockfile(f);
|
||||
}
|
||||
|
Reference in New Issue
Block a user