[all-commits] [llvm/llvm-project] 5cddc3: [libc] fix rwlock test (#100962)
Schrodinger ZHU Yifan via All-commits
all-commits at lists.llvm.org
Sun Jul 28 21:36:39 PDT 2024
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 5cddc314c8928ead12bb9c07cbefa45ee410de5c
https://github.com/llvm/llvm-project/commit/5cddc314c8928ead12bb9c07cbefa45ee410de5c
Author: Schrodinger ZHU Yifan <yifanzhu at rochester.edu>
Date: 2024-07-28 (Sun, 28 Jul 2024)
Changed paths:
M libc/test/integration/src/pthread/pthread_rwlock_test.cpp
Log Message:
-----------
[libc] fix rwlock test (#100962)
Previous commit uses wrong clock id and forget to release an additional
rdlock. cc @Eric977
Sorry for missing this in my initial review.
Fixes https://github.com/llvm/llvm-project/issues/100960.
Notice that the timestamp is created via
```c++
LIBC_NAMESPACE::clock_gettime(CLOCK_REALTIME, &ts);
ts.tv_nsec += 50'000;
if (ts.tv_nsec >= 1'000'000'000) {
ts.tv_nsec -= 1'000'000'000;
ts.tv_sec += 1;
}
```
To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications
More information about the All-commits
mailing list