mirror of
https://github.com/fish-shell/fish-shell.git
synced 2024-11-25 18:03:37 +08:00
ff28f29e8f
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. |
||
---|---|---|
.. | ||
src | ||
widestring-suffix | ||
build.rs | ||
Cargo.lock | ||
Cargo.toml |