<feed xmlns='http://www.w3.org/2005/Atom'>
<title>rust/library/std/src/sys/sync/rwlock/queue.rs, branch cargo_update</title>
<subtitle>https://github.com/rust-lang/rust
</subtitle>
<id>http://git.dreamy.place/mirrors/rust/atom?h=cargo_update</id>
<link rel='self' href='http://git.dreamy.place/mirrors/rust/atom?h=cargo_update'/>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/'/>
<updated>2025-04-26T23:18:08+00:00</updated>
<entry>
<title>use generic Atomic type where possible</title>
<updated>2025-04-26T23:18:08+00:00</updated>
<author>
<name>Christopher Durham</name>
<email>cad97@cad97.com</email>
</author>
<published>2024-09-19T04:15:03+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=4d93f6056824c338751f19356d33bb61ce818749'/>
<id>urn:sha1:4d93f6056824c338751f19356d33bb61ce818749</id>
<content type='text'>
in core/alloc/std only for now, and ignoring test files

Co-authored-by: Pavel Grigorenko &lt;GrigorenkoPV@ya.ru&gt;
</content>
</entry>
<entry>
<title>std: allow after-main use of synchronization primitives</title>
<updated>2024-11-18T16:55:36+00:00</updated>
<author>
<name>joboet</name>
<email>jonasboettiger@icloud.com</email>
</author>
<published>2024-11-07T16:13:33+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=5a856b82f3a1bf335e0e62d92c800d8436977af1'/>
<id>urn:sha1:5a856b82f3a1bf335e0e62d92c800d8436977af1</id>
<content type='text'>
By creating an unnamed thread handle when the actual one has already been destroyed, synchronization primitives using thread parking can be used even outside the Rust runtime.

This also fixes an inefficiency in the queue-based `RwLock`: if `thread::current` was not initialized yet, it will create a new handle on every parking attempt without initializing `thread::current`. The private `current_or_unnamed` function introduced here fixes this.
</content>
</entry>
<entry>
<title>fix `DOWNGRADED` bit unpreserved</title>
<updated>2024-11-16T17:31:14+00:00</updated>
<author>
<name>Connor Tsui</name>
<email>87130162+connortsui20@users.noreply.github.com</email>
</author>
<published>2024-11-16T17:22:35+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=782b07e1ff4a4f8ecf00d5e030dfead9222d2185'/>
<id>urn:sha1:782b07e1ff4a4f8ecf00d5e030dfead9222d2185</id>
<content type='text'>
Co-authored-by: Jonas Böttiger &lt;jonasboettiger@icloud.com&gt;
</content>
</entry>
<entry>
<title>add safety comments for queue implementation</title>
<updated>2024-11-16T17:31:13+00:00</updated>
<author>
<name>Connor Tsui</name>
<email>connor.tsui20@gmail.com</email>
</author>
<published>2024-10-29T00:02:14+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=3d191b50d2b5a4b17eda2f8cccaa5088ef56b8af'/>
<id>urn:sha1:3d191b50d2b5a4b17eda2f8cccaa5088ef56b8af</id>
<content type='text'>
</content>
</entry>
<entry>
<title>add `downgrade` to `queue` implementation</title>
<updated>2024-11-16T17:31:13+00:00</updated>
<author>
<name>Connor Tsui</name>
<email>connor.tsui20@gmail.com</email>
</author>
<published>2024-10-25T19:01:57+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=26b5a1485e60a1ea7fd7e638fd59ec6b25fbc3d0'/>
<id>urn:sha1:26b5a1485e60a1ea7fd7e638fd59ec6b25fbc3d0</id>
<content type='text'>
This commit adds the `downgrade` method onto the inner `RwLock` queue
implementation.

There are also a few other style patches included in this commit.

Co-authored-by: Jonas Böttiger &lt;jonasboettiger@icloud.com&gt;
</content>
</entry>
<entry>
<title>modify queue implementation documentation</title>
<updated>2024-11-16T17:31:13+00:00</updated>
<author>
<name>Connor Tsui</name>
<email>connor.tsui20@gmail.com</email>
</author>
<published>2024-10-25T18:54:43+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=31e35c2131f0b71a7d2cdc3b515d1a22f5f3b61d'/>
<id>urn:sha1:31e35c2131f0b71a7d2cdc3b515d1a22f5f3b61d</id>
<content type='text'>
This commit only has documentation changes and a few things moved around
the file. The very few code changes are cosmetic: changes like turning a
`match` statement into an `if let` statement or reducing indentation for
long if statements.

This commit also adds several safety comments on top of `unsafe` blocks
that might not be immediately obvious to a first-time reader.

Code "changes" are in:
- `add_backlinks_and_find_tail`
- `lock_contended`

A majority of the changes are just expanding the comments from 80
columns to 100 columns.
</content>
</entry>
<entry>
<title>library: consistently use American spelling for 'behavior'</title>
<updated>2024-10-25T10:02:47+00:00</updated>
<author>
<name>Ralf Jung</name>
<email>post@ralfj.de</email>
</author>
<published>2024-10-25T10:01:08+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=854e3c43e005c992542a80bea9bbe16230470362'/>
<id>urn:sha1:854e3c43e005c992542a80bea9bbe16230470362</id>
<content type='text'>
</content>
</entry>
<entry>
<title>std: make `thread::current` available in all `thread_local!` destructors</title>
<updated>2024-10-02T16:04:21+00:00</updated>
<author>
<name>joboet</name>
<email>jonasboettiger@icloud.com</email>
</author>
<published>2024-07-18T11:59:48+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=d868fdce6b9ddef6abcc8de86b3ba8459def36a2'/>
<id>urn:sha1:d868fdce6b9ddef6abcc8de86b3ba8459def36a2</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Reformat using the new identifier sorting from rustfmt</title>
<updated>2024-09-22T23:11:29+00:00</updated>
<author>
<name>Michael Goulet</name>
<email>michael@errs.io</email>
</author>
<published>2024-09-22T23:05:04+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=c682aa162b0d41e21cc6748f4fecfe01efb69d1f'/>
<id>urn:sha1:c682aa162b0d41e21cc6748f4fecfe01efb69d1f</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Reformat `use` declarations.</title>
<updated>2024-07-28T22:26:52+00:00</updated>
<author>
<name>Nicholas Nethercote</name>
<email>n.nethercote@gmail.com</email>
</author>
<published>2024-07-28T22:13:50+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=84ac80f1921afc243d71fd0caaa4f2838c294102'/>
<id>urn:sha1:84ac80f1921afc243d71fd0caaa4f2838c294102</id>
<content type='text'>
The previous commit updated `rustfmt.toml` appropriately. This commit is
the outcome of running `x fmt --all` with the new formatting options.
</content>
</entry>
</feed>
