-
Notifications
You must be signed in to change notification settings - Fork 38
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* [ThreadPoolTask] Rename `done` field to `avaialable`, for better clarity in the contexts it's used. * [ThreadPoolTask] Add `awaitAndAcquireFirstAvailableTask` & `blockUntilCompletion` functions, remove `queue` function, replace usages of `queue` and code which would now duplicate the aforementioned additions. * [ThreadPoolTask] Add `result` field for signalling the result of the callback. * [gossip] Make use of `ThreadPoolTask` instead of manually implementing the VerifyMessageTask Task interface details. * [gossip] Add `GOSSIP_VERIFY_PACKET_PARALLEL_TASKS` constant, and use it instead of hardcoding the tasks allocated in `verifyPackets`. * [gossip] Make `verifyPackets` and `processMessages` accept an a shared allocator, and make `run` provide a thread-safe allocator which will only be contended by a maximum of the avilable tasks plus the number of messages processed at the same time. * [tar] Panic on some invalid but possible invariants. * Constify more things that don't need to be mutable.
- Loading branch information
1 parent
d0307e1
commit 3b7b21b
Showing
3 changed files
with
115 additions
and
118 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.