You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* Bump dep jobserver from 0.1.20 to 0.1.30
Signed-off-by: Jiahao XU <[email protected]>
* Add `parallel::OnceLock` impl copied from `std::sync::OnceLock`
Signed-off-by: Jiahao XU <[email protected]>
* Optimize `inherited_jobserver` acquire
First try `jobserver::Client::try_acquire`, which will work:
- If a fifo is used as jobserver
- On linux and:
- preadv2 with non-blocking read available (>=5.6)
- /proc is available
- On Windows
- On wasm
if not, we will simply fallback to help thread implementation, spawning one
thread to maintain compatibility with other platforms.
Signed-off-by: Jiahao XU <[email protected]>
* Use `OnceLock` in `JobTokenServer::new`
Also impls `Send`, `Sync`, `RefUnwindSafe` and `UnwindSafed` when the `T`
meets the criterior.
Signed-off-by: Jiahao XU <[email protected]>
* Replace vendored `OnceLock` with dep `once_cell`
Signed-off-by: Jiahao XU <[email protected]>
* Fix dep: `once_cell` is needed on all targets
whenever feature parallel is enabled.
Signed-off-by: Jiahao XU <[email protected]>
* Refactor: `ActiveJobTokenServer::new` no longer returns `Result`
There is no need to, it never fails.
Signed-off-by: Jiahao XU <[email protected]>
* Add back TODO
---------
Signed-off-by: Jiahao XU <[email protected]>
0 commit comments