We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e8ab915 commit e8031deCopy full SHA for e8031de
dbtests/threadedtests.cpp
@@ -64,7 +64,9 @@ namespace ThreadedTests {
64
enum { N = 40000 };
65
#endif
66
MongoMutex *mm;
67
+ ProgressMeter pm;
68
public:
69
+ MongoMutexTest() : pm(N * nthreads) {}
70
void run() {
71
Timer t;
72
cout << "MongoMutexTest N:" << N << endl;
@@ -121,6 +123,7 @@ namespace ThreadedTests {
121
123
mm->lock_shared();
122
124
mm->unlock_shared();
125
}
126
+ pm.hit();
127
128
cc().shutdown();
129
0 commit comments