rust/library/std/src/sys
Dan Gohman 9bb11ba511 Remove an unnecessary Mutex around argument initialization.
In the command-line argument initialization code, remove the Mutex
around the `ARGV` and `ARGC` variables, and simply check whether
ARGV is non-null before dereferencing it. This way, if either of
ARGV or ARGC is not initialized, we'll get an empty argument list.

This allows simple cdylibs to avoid having
`pthread_mutex_lock`/`pthread_mutex_unlock` appear in their symbol
tables if they don't otherwise use threads.
2021-07-17 13:35:38 -07:00
..
common Update documentation 2021-04-14 14:03:00 +02:00
hermit Auto merge of #85746 - m-ou-se:io-error-other, r=joshtriplett 2021-07-02 09:01:42 +00:00
sgx Auto merge of #85746 - m-ou-se:io-error-other, r=joshtriplett 2021-07-02 09:01:42 +00:00
unix Remove an unnecessary Mutex around argument initialization. 2021-07-17 13:35:38 -07:00
unsupported Auto merge of #85746 - m-ou-se:io-error-other, r=joshtriplett 2021-07-02 09:01:42 +00:00
wasi Auto merge of #85746 - m-ou-se:io-error-other, r=joshtriplett 2021-07-02 09:01:42 +00:00
wasm Fix double import in wasm thread 2021-07-02 09:37:00 +00:00
windows Debug formatting of raw_arg() 2021-07-09 14:24:34 +01:00
mod.rs Allow documenting on hermit 2021-05-03 16:56:22 +02:00