Skip to content

Commit

Permalink
add comment for XorShiftThreadProbe
Browse files Browse the repository at this point in the history
  • Loading branch information
mariofusco committed Jan 9, 2024
1 parent e732222 commit 5ed8e2f
Showing 1 changed file with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -197,6 +197,11 @@ public boolean test(Thread thread) {
}
}

/**
* This class is used to hash the thread requiring a pooled resource using a multiplicative
* Fibonacci hashing implementation. The resulting hash is then used to calculate the
* index of the bucket in the pool from where the pooled resource has to be retrieved.
*/
private static class XorShiftThreadProbe {

private final int mask;
Expand Down

0 comments on commit 5ed8e2f

Please sign in to comment.