Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
B
BigDataViewer_Core_Extension
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
BioinformaticDataCompression
BigDataViewer_Core_Extension
Commits
ac05d5cb
Commit
ac05d5cb
authored
8 years ago
by
Tobias Pietzsch
Browse files
Options
Downloads
Patches
Plain Diff
rename maxNumLevels to numPriorityLevels
parent
eeca5028
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/main/java/bdv/cache/LoadingVolatileCache.java
+7
-7
7 additions, 7 deletions
src/main/java/bdv/cache/LoadingVolatileCache.java
with
7 additions
and
7 deletions
src/main/java/bdv/cache/LoadingVolatileCache.java
+
7
−
7
View file @
ac05d5cb
...
...
@@ -72,7 +72,7 @@ public final class LoadingVolatileCache< K, V extends VolatileCacheValue > imple
private
final
CacheIoTiming
cacheIoTiming
=
new
CacheIoTiming
();
private
final
int
maxNum
Levels
;
private
final
int
numPriority
Levels
;
private
final
BlockingFetchQueues
<
K
>
queue
;
...
...
@@ -85,16 +85,16 @@ public final class LoadingVolatileCache< K, V extends VolatileCacheValue > imple
* priority levels and number of {@link FetcherThreads} for asynchronous
* loading of cache entries.
*
* @param
maxNum
Levels
* the number of priority levels.
* @param
numPriority
Levels
* the number of priority levels
(see {@link CacheHints})
.
* @param numFetcherThreads
* the number of threads to create for asynchronous loading of
* cache entries.
*/
public
LoadingVolatileCache
(
final
int
maxNum
Levels
,
final
int
numFetcherThreads
)
public
LoadingVolatileCache
(
final
int
numPriority
Levels
,
final
int
numFetcherThreads
)
{
this
.
maxNumLevels
=
maxNum
Levels
;
queue
=
new
BlockingFetchQueues
<>(
maxNum
Levels
);
this
.
numPriorityLevels
=
numPriority
Levels
;
queue
=
new
BlockingFetchQueues
<>(
numPriority
Levels
);
fetchers
=
new
FetcherThreads
<>(
queue
,
new
EntryLoader
(),
numFetcherThreads
);
}
...
...
@@ -207,7 +207,7 @@ public final class LoadingVolatileCache< K, V extends VolatileCacheValue > imple
{
final
IoStatistics
stats
=
cacheIoTiming
.
getThreadGroupIoStatistics
();
if
(
stats
.
getIoTimeBudget
()
==
null
)
stats
.
setIoTimeBudget
(
new
IoTimeBudget
(
maxNum
Levels
)
);
stats
.
setIoTimeBudget
(
new
IoTimeBudget
(
numPriority
Levels
)
);
stats
.
getIoTimeBudget
().
reset
(
partialBudget
);
}
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment