about summary refs log tree commit diff
path: root/src/test/codegen/src-hash-algorithm
diff options
context:
space:
mode:
authorTomasz Miąsko <tomasz.miasko@gmail.com>2020-10-20 00:00:00 +0000
committerTomasz Miąsko <tomasz.miasko@gmail.com>2020-10-20 00:00:00 +0000
commit21c29b1e954d494026b07241aa8365837d5ecfdb (patch)
treeae5bc05e490ce1527af198a8678ea32680bfe417 /src/test/codegen/src-hash-algorithm
parenta85e94927622665a9e9022de0d33a890a2e32d43 (diff)
downloadrust-21c29b1e954d494026b07241aa8365837d5ecfdb.tar.gz
rust-21c29b1e954d494026b07241aa8365837d5ecfdb.zip
Check 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.

Check that initialization succeeds to ensure that mutex guarantees
mutual exclusion.
Diffstat (limited to 'src/test/codegen/src-hash-algorithm')
0 files changed, 0 insertions, 0 deletions