diff options
| author | Yuki Okushi <huyuumi.dev@gmail.com> | 2020-10-20 12:10:58 +0900 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-10-20 12:10:58 +0900 |
| commit | b09ef114bbd5f057803fc99f0b78a01e7c1138fa (patch) | |
| tree | e6f959f61740103f4a76e91ceada7056666c8c0f /src/test/codegen/src-hash-algorithm | |
| parent | c5b0a88669e26e1d3ee44bf4029f07f572a90a79 (diff) | |
| parent | 21c29b1e954d494026b07241aa8365837d5ecfdb (diff) | |
| download | rust-b09ef114bbd5f057803fc99f0b78a01e7c1138fa.tar.gz rust-b09ef114bbd5f057803fc99f0b78a01e7c1138fa.zip | |
Rollup merge of #77761 - tmiasko:pthread-mutex, r=cuviper
Assert that pthread mutex initialization succeeded If pthread mutex initialization fails, the failure will go unnoticed unless debug assertions are enabled. Any subsequent use of mutex will also silently fail, since return values from lock & unlock operations are similarly checked only through debug assertions. In some implementations the mutex initialization requires a memory allocation and so it does fail in practice. Assert that initialization succeeds to ensure that mutex guarantees mutual exclusion. Fixes #34966.
Diffstat (limited to 'src/test/codegen/src-hash-algorithm')
0 files changed, 0 insertions, 0 deletions
