Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
CERN ROOT
Manage
Activity
Members
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Model registry
Analyze
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
Rutherford Experiment Lab Course Online
CERN ROOT
Commits
b6a21b5b
Commit
b6a21b5b
authored
4 years ago
by
Philippe Canal
Browse files
Options
Downloads
Patches
Plain Diff
Add TBufferMerger::GetBuffered.
This can be used to monitor the queue size in bytes rather than number of files
parent
abaa4766
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
io/io/inc/ROOT/TBufferMerger.hxx
+3
-0
3 additions, 0 deletions
io/io/inc/ROOT/TBufferMerger.hxx
io/io/src/TBufferMerger.cxx
+6
-0
6 additions, 0 deletions
io/io/src/TBufferMerger.cxx
with
9 additions
and
0 deletions
io/io/inc/ROOT/TBufferMerger.hxx
+
3
−
0
View file @
b6a21b5b
...
...
@@ -70,6 +70,9 @@ public:
/** Returns the number of buffers currently in the queue. */
size_t
GetQueueSize
()
const
;
/** Returns the number of bytes currently buffered (i.e. in the queue). */
size_t
GetBuffered
()
const
;
/** Returns the current value of the auto save setting in bytes (default = 0). */
size_t
GetAutoSave
()
const
;
...
...
This diff is collapsed.
Click to expand it.
io/io/src/TBufferMerger.cxx
+
6
−
0
View file @
b6a21b5b
...
...
@@ -66,6 +66,12 @@ size_t TBufferMerger::GetQueueSize() const
return
fQueue
.
size
();
}
size_t
TBufferMerger
::
GetBuffered
()
const
{
std
::
lock_guard
<
std
::
mutex
>
lock
(
fQueueMutex
);
return
fBuffered
;
}
void
TBufferMerger
::
Push
(
TBufferFile
*
buffer
)
{
{
...
...
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