-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
pool: don't try to steal from own thread
steal id = (rand (mod n-1)) + id + 1 (mod n) Current implementation has a lot of repeated calls to lc_pool_get_local that the compiler doesn't seem to fully get rid of. Maybe marking it with __attribute__((pure)) will help? Need to re-read docs to ensure we don't violate its constraints.
- Loading branch information
Showing
1 changed file
with
19 additions
and
19 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