about summary refs log tree commit diff
path: root/src/test/codegen/src-hash-algorithm
diff options
context:
space:
mode:
authorYuki Okushi <huyuumi.dev@gmail.com>2020-10-20 12:10:58 +0900
committerGitHub <noreply@github.com>2020-10-20 12:10:58 +0900
commitb09ef114bbd5f057803fc99f0b78a01e7c1138fa (patch)
treee6f959f61740103f4a76e91ceada7056666c8c0f /src/test/codegen/src-hash-algorithm
parentc5b0a88669e26e1d3ee44bf4029f07f572a90a79 (diff)
parent21c29b1e954d494026b07241aa8365837d5ecfdb (diff)
downloadrust-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