diff options
| author | Trevor Gross <tmgross@umich.edu> | 2025-06-13 00:08:58 +0000 |
|---|---|---|
| committer | Trevor Gross <tmgross@umich.edu> | 2025-06-29 15:53:58 -0500 |
| commit | d69b8e2b48cd5e3ac4f8ee7af995241ea7c3a010 (patch) | |
| tree | 36f8abc1373bfd96fc3ae734ba589a9cc5db408c /tests/codegen/src-hash-algorithm/src-hash-algorithm-sha1.rs | |
| parent | 85357d1e5cf56d8aca54e7d4f6cc365b006f484a (diff) | |
| download | rust-d69b8e2b48cd5e3ac4f8ee7af995241ea7c3a010.tar.gz rust-d69b8e2b48cd5e3ac4f8ee7af995241ea7c3a010.zip | |
Add shims for `gettid`-esque functions
Various platforms provide a function to return the current OS thread ID,
but they all use a slightly different name. Add shims for these
functions for Apple, FreeBSD, and Windows, with tests to account for
those and a few more platforms that are not yet supported by Miri. The
syscall and extern symbol is included as well on Linux.
These should be useful in general but will also help support printing
the OS thread ID in panic messages [1].
[1]: https://github.com/rust-lang/rust/pull/115746
Squashed commit from Ralf:
try_from_scalar: extend comment
Diffstat (limited to 'tests/codegen/src-hash-algorithm/src-hash-algorithm-sha1.rs')
0 files changed, 0 insertions, 0 deletions
