We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent db8ad2d commit 416fc72Copy full SHA for 416fc72
src/commons/Debug.h
@@ -178,8 +178,13 @@ class Debug
178
prevPrintedId = 0;
179
}
180
181
- void updateProgress(){
182
- size_t id = __sync_fetch_and_add(¤tPos, 1);
+ void updateProgress(size_t pos = SIZE_MAX){
+ size_t id;
183
+ if (pos == SIZE_MAX) {
184
+ id = __sync_fetch_and_add(¤tPos, 1);
185
+ } else {
186
+ id = pos;
187
+ }
188
// if no active terminal exists write dots
189
if(interactive == false){
190
if(totalEntries==SIZE_MAX) {
0 commit comments