<feed xmlns='http://www.w3.org/2005/Atom'>
<title>delta/rust.git/src/libstd/thread/mod.rs, branch tmp-nightly</title>
<subtitle>github.com: rust-lang/rust.git
</subtitle>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/rust.git/'/>
<entry>
<title>mv std libs to library/</title>
<updated>2020-07-27T14:50:25+00:00</updated>
<author>
<name>mark</name>
<email>markm@cs.wisc.edu</email>
</author>
<published>2020-06-12T02:31:49+00:00</published>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/rust.git/commit/?id=94543a003df852c9220261f56e2d691ded1b8907'/>
<id>94543a003df852c9220261f56e2d691ded1b8907</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>Rollup merge of #73269 - mzohreva:mz/sgx-wait-timeout, r=jethrogb</title>
<updated>2020-07-17T00:08:56+00:00</updated>
<author>
<name>Manish Goregaokar</name>
<email>manishsmail@gmail.com</email>
</author>
<published>2020-07-17T00:08:56+00:00</published>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/rust.git/commit/?id=41d956bf632fbc658f21a4195344fe79b685cde9'/>
<id>41d956bf632fbc658f21a4195344fe79b685cde9</id>
<content type='text'>
Enable some timeouts in SGX platform

This would partially resolve https://github.com/fortanix/rust-sgx/issues/31

cc @jethrogb and @Goirad
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Enable some timeouts in SGX platform

This would partially resolve https://github.com/fortanix/rust-sgx/issues/31

cc @jethrogb and @Goirad
</pre>
</div>
</content>
</entry>
<entry>
<title>Remove the useless indentation</title>
<updated>2020-07-12T14:51:04+00:00</updated>
<author>
<name>Lzu Tao</name>
<email>taolzu@gmail.com</email>
</author>
<published>2020-07-10T15:59:25+00:00</published>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/rust.git/commit/?id=1e05e09fe9df9919dc1c1c0f36255f4f1098fc24'/>
<id>1e05e09fe9df9919dc1c1c0f36255f4f1098fc24</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>Enable some timeouts in SGX platform</title>
<updated>2020-06-12T18:26:19+00:00</updated>
<author>
<name>Mohsen Zohrevandi</name>
<email>mohsen.zohrevandi@fortanix.com</email>
</author>
<published>2020-06-12T00:44:21+00:00</published>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/rust.git/commit/?id=c4b02659c16d2ad0ac36d2c8602edd002e559f7a'/>
<id>c4b02659c16d2ad0ac36d2c8602edd002e559f7a</id>
<content type='text'>
This would partially resolve
https://github.com/fortanix/rust-sgx/issues/31
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
This would partially resolve
https://github.com/fortanix/rust-sgx/issues/31
</pre>
</div>
</content>
</entry>
<entry>
<title>Migrate to numeric associated consts</title>
<updated>2020-06-10T01:35:47+00:00</updated>
<author>
<name>Lzu Tao</name>
<email>taolzu@gmail.com</email>
</author>
<published>2020-06-02T07:59:11+00:00</published>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/rust.git/commit/?id=fff822fead6249671cbcb090b24bce58fab38de0'/>
<id>fff822fead6249671cbcb090b24bce58fab38de0</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>Warn against thread::sleep in async fn</title>
<updated>2020-05-12T15:38:02+00:00</updated>
<author>
<name>Kornel</name>
<email>kornel@geekhood.net</email>
</author>
<published>2020-05-12T15:38:02+00:00</published>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/rust.git/commit/?id=2d39f5abcd3953eb1578f718c75c39c457bcb009'/>
<id>2d39f5abcd3953eb1578f718c75c39c457bcb009</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>Fix clippy warnings</title>
<updated>2020-05-11T15:13:32+00:00</updated>
<author>
<name>Matthias Krüger</name>
<email>matthias.krueger@famsik.de</email>
</author>
<published>2020-05-11T11:01:37+00:00</published>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/rust.git/commit/?id=8bfd84539e847b9ac9d7c811a370a9c3840d6c3b'/>
<id>8bfd84539e847b9ac9d7c811a370a9c3840d6c3b</id>
<content type='text'>
Fixes clippy::{cone_on_copy, filter_next, redundant_closure, single_char_pattern, len_zero,redundant_field_names, useless_format, identity_conversion, map_clone, into_iter_on_ref, needless_return, option_as_ref_deref, unused_unit, unnecessary_mut_passed}
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Fixes clippy::{cone_on_copy, filter_next, redundant_closure, single_char_pattern, len_zero,redundant_field_names, useless_format, identity_conversion, map_clone, into_iter_on_ref, needless_return, option_as_ref_deref, unused_unit, unnecessary_mut_passed}
</pre>
</div>
</content>
</entry>
<entry>
<title>Stop accessing module level int consts via crate::&lt;Ty&gt;</title>
<updated>2020-04-20T21:38:06+00:00</updated>
<author>
<name>Linus Färnstrand</name>
<email>faern@faern.net</email>
</author>
<published>2020-04-16T22:43:04+00:00</published>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/rust.git/commit/?id=9fc083323503134a9af73516f22347ecc6650705'/>
<id>9fc083323503134a9af73516f22347ecc6650705</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>Return NonZeroU64 from ThreadId::as_u64.</title>
<updated>2020-03-21T18:48:23+00:00</updated>
<author>
<name>Thomas Bächler</name>
<email>thomas.baechler@gmx.de</email>
</author>
<published>2020-03-21T18:48:23+00:00</published>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/rust.git/commit/?id=c8140a88f67cf1fea104b1aaa615af7816984615'/>
<id>c8140a88f67cf1fea104b1aaa615af7816984615</id>
<content type='text'>
As discussed in #67939, this allows turning Option&lt;ThreadId&gt; into Option&lt;NonZeroU64&gt; which
can then be stored inside an AtomicU64.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
As discussed in #67939, this allows turning Option&lt;ThreadId&gt; into Option&lt;NonZeroU64&gt; which
can then be stored inside an AtomicU64.
</pre>
</div>
</content>
</entry>
<entry>
<title>Add an unstable conversion from thread ID to u64</title>
<updated>2020-01-06T15:56:13+00:00</updated>
<author>
<name>Mark Rousskov</name>
<email>mark.simulacrum@gmail.com</email>
</author>
<published>2019-12-23T17:54:54+00:00</published>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/rust.git/commit/?id=d9a7db901e33940cb2ccda6afe21b9916e66d9d2'/>
<id>d9a7db901e33940cb2ccda6afe21b9916e66d9d2</id>
<content type='text'>
We see multiple cases inside rustc and ecosystem code where ThreadId is
transmuted to u64, exploiting the underlying detail. This is suboptimal
(can break unexpectedly if we change things in std).

It is unlikely that ThreadId will ever need to be larger than u64 --
creating even 2^32 threads over the course of a program is quite hard,
2^64 is even harder. As such, we do not choose to return a larger sized
type (e.g. u128). If we choose to shrink ThreadId in the future, or
otherwise change its internals, it is likely that a mapping to u64 will
still be applicable (though may become more complex).
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
We see multiple cases inside rustc and ecosystem code where ThreadId is
transmuted to u64, exploiting the underlying detail. This is suboptimal
(can break unexpectedly if we change things in std).

It is unlikely that ThreadId will ever need to be larger than u64 --
creating even 2^32 threads over the course of a program is quite hard,
2^64 is even harder. As such, we do not choose to return a larger sized
type (e.g. u128). If we choose to shrink ThreadId in the future, or
otherwise change its internals, it is likely that a mapping to u64 will
still be applicable (though may become more complex).
</pre>
</div>
</content>
</entry>
</feed>
