fish-shell/fish-rust
Mahmoud Al-Qudsi ff28f29e8f
Move thread stuff out of common.rs (#9745)
is_main_thread() and co were previously ported to threads.rs, so remove the
duplicate code and move everything else related to threads there as well. No
need for common.rs to be as long as our old common.cpp!

I left #[deprecated] stubs in common.rs to help redirect anyone porting code
over that we can remove after the port has finished.

Additionally, the fork guards had previously been left as a todo!() item but I
ported that over. They're all called from the now-central threads::init()
function so there isn't a need to call each individual thread-management-fn
manually.

The decision was made a while back to try and embrace/use the native rust thread
functionality and utilities so the manual thread management code has been ripped
out and was replaced with code that marshals the native rust values instead. The
values won't line up with what the C++ code sees, but it never lined up anyway
since each was using a separate counter to keep track of the values.
2023-04-23 12:26:10 -05:00
..
src Move thread stuff out of common.rs (#9745) 2023-04-23 12:26:10 -05:00
widestring-suffix Initial Rust commit 2023-02-02 19:34:47 -07:00
build.rs Port AST to Rust 2023-04-16 17:46:56 +02:00
Cargo.lock Env stubs for path port 2023-04-21 13:57:29 +02:00
Cargo.toml Env stubs for path port 2023-04-21 13:57:29 +02:00