<feed xmlns='http://www.w3.org/2005/Atom'>
<title>rust/library/std/src/thread/scoped.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>Rollup merge of #132730 - joboet:after_main_sync, r=Noratrieb</title>
<updated>2024-11-24T16:39:03+00:00</updated>
<author>
<name>许杰友 Jieyou Xu (Joe)</name>
<email>39484203+jieyouxu@users.noreply.github.com</email>
</author>
<published>2024-11-24T16:39:03+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=31b4023e24e82c7c0ca6b9637de1b14d46d02b92'/>
<id>urn:sha1:31b4023e24e82c7c0ca6b9637de1b14d46d02b92</id>
<content type='text'>
std: allow after-main use of synchronization primitives

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 typo in `std::thread::Scope::spawn` documentation.</title>
<updated>2024-11-22T10:51:38+00:00</updated>
<author>
<name>Colin Finck</name>
<email>colin@reactos.org</email>
</author>
<published>2024-11-22T10:51:38+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=d0384f3ba5caa6871ce45b4ca90743d546fa698c'/>
<id>urn:sha1:d0384f3ba5caa6871ce45b4ca90743d546fa698c</id>
<content type='text'>
</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>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>
<entry>
<title>Fix doc nits</title>
<updated>2024-07-26T12:26:33+00:00</updated>
<author>
<name>John Arundel</name>
<email>john@bitfieldconsulting.com</email>
</author>
<published>2024-07-15T11:26:30+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=a19472a93e2eecce1477011fa9f7ec49b45ca164'/>
<id>urn:sha1:a19472a93e2eecce1477011fa9f7ec49b45ca164</id>
<content type='text'>
Many tiny changes to stdlib doc comments to make them consistent (for example
"Returns foo", rather than "Return foo", per RFC1574), adding missing periods, paragraph
breaks, backticks for monospace style, and other minor nits.

https://github.com/rust-lang/rfcs/blob/master/text/1574-more-api-documentation-conventions.md#appendix-a-full-conventions-text
</content>
</entry>
<entry>
<title>Move rare overflow error to a cold function</title>
<updated>2024-04-11T21:23:49+00:00</updated>
<author>
<name>Kornel</name>
<email>kornel@geekhood.net</email>
</author>
<published>2024-04-11T21:09:43+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=1170d73007c1547dc07dadf247bb74bff4c35294'/>
<id>urn:sha1:1170d73007c1547dc07dadf247bb74bff4c35294</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Fix incorrect doc of ScopedJoinHandle::is_finished</title>
<updated>2024-02-23T22:39:00+00:00</updated>
<author>
<name>Wojciech Geisler</name>
<email>wojciech.geisler@gmail.com</email>
</author>
<published>2024-02-23T22:34:40+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=7234c9893ded40e746877be7d5e4c53a606b36a1'/>
<id>urn:sha1:7234c9893ded40e746877be7d5e4c53a606b36a1</id>
<content type='text'>
Fixes the explanation how to use is_finished to achieve a non-blocking
join. The updated version matches the documentation of the non-scoped
JoinHandle::is_finished.
</content>
</entry>
<entry>
<title>fix dupe word typos</title>
<updated>2022-12-05T08:42:36+00:00</updated>
<author>
<name>Rageking8</name>
<email>tomleetyt@gmail.com</email>
</author>
<published>2022-12-05T08:42:36+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=58110572fb23e0ad1944bdf3d8cdb3f84cb91aa2'/>
<id>urn:sha1:58110572fb23e0ad1944bdf3d8cdb3f84cb91aa2</id>
<content type='text'>
</content>
</entry>
</feed>
