diff options
author | Schrodinger ZHU Yifan <yifanzhu@rochester.edu> | 2024-05-31 18:57:18 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-05-31 18:57:18 -0700 |
commit | 142afde0eba4940f2b331274e9a3535fee960f35 (patch) | |
tree | 5dc87260d5607ece707ccea6dcfe0234776dae12 /libc/config | |
parent | d337c504ef3652e9ccd75b21bbc79d010ee6c637 (diff) | |
download | llvm-142afde0eba4940f2b331274e9a3535fee960f35.zip llvm-142afde0eba4940f2b331274e9a3535fee960f35.tar.gz llvm-142afde0eba4940f2b331274e9a3535fee960f35.tar.bz2 |
[libc] rework mutex (#92168)
Diffstat (limited to 'libc/config')
-rw-r--r-- | libc/config/config.json | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/libc/config/config.json b/libc/config/config.json index d6ef891..d3d1ff1 100644 --- a/libc/config/config.json +++ b/libc/config/config.json @@ -40,5 +40,15 @@ "value": true, "doc": "Enable -fstack-protector-strong to defend against stack smashing attack." } + }, + "pthread": { + "LIBC_CONF_TIMEOUT_ENSURE_MONOTONICITY": { + "value": true, + "doc": "Automatically adjust timeout to CLOCK_MONOTONIC (default to true). POSIX API may require CLOCK_REALTIME, which can be unstable and leading to unexpected behavior. This option will convert the real-time timestamp to monotonic timestamp relative to the time of call." + }, + "LIBC_CONF_RAW_MUTEX_DEFAULT_SPIN_COUNT": { + "value": 100, + "doc": "Default number of spins before blocking if a mutex is in contention (default to 100)." + } } } |