Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 18 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@

# Changelog

All notable changes to this project will be documented in this file.
Expand All @@ -13,6 +14,23 @@ This project is currently in early [pre-release], and there may be arbitrary bre

## [Unreleased]

### Added

- `ThreadPool::num_workers` method which returns the current number of workers
- `ThreadPool::on_worker` variant of `with_worker` for `Send` closures.
- `ThreadPool::expect_worker` variant of `with_worker` that panics.

### Changed
- Work sharing has been rewritten to improve performance.
- Thread pools can now have a max of 32 workers at a time.
- `spawn`, `Scope::spawn`, and `Worker::spawn` now accept closures and futures.
- `ThreadPool::with_worker` now provides `Option<&Worker>` instead of `&Worker`.
- `claim_lease` now returns `Option<Lease>` instead of `Lease`.
- `Scope` now has two lifetimes instead of one, and is more flexible.

### Removed
- All versions of `spawn_future` and `spawn_async`; just use `spawn` instead.

## [1.0.0-alpha.4]

### Added
Expand Down
164 changes: 147 additions & 17 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 4 additions & 2 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -3,19 +3,21 @@ name = "forte"
version = "1.0.0-dev"
edition = "2024"
license = "MIT OR Apache-2.0"
description = "A low-overhead thread-pool with support for non-static async closures"
description = "Low-overhead parallel and async work scheduler"
repository = "https://github.com/NthTensor/Forte"

[workspace]
resolver = "2"
members = ["ci"]

[dependencies]
arraydeque = "0.5.1"
async-task = "4.7.1"
atomic-wait = "1.1.0"
crossbeam-queue = "0.3.12"
crossbeam-utils = "0.8.21"
st3 = "0.4"
hotclock = { git = "https://github.com/spence/hotclock" }

shuttle = { version = "0.8.0", optional = true }
tracing = { version = "0.1.41", features = ["release_max_level_off"] }
tracing-subscriber = "0.3.19"
Expand Down
Loading
Loading