aboutsummaryrefslogtreecommitdiff
path: root/src/tests
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--src/tests/readwritemutex.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/tests/readwritemutex.cpp b/src/tests/readwritemutex.cpp
index 7116da2..3e13e7a 100644
--- a/src/tests/readwritemutex.cpp
+++ b/src/tests/readwritemutex.cpp
@@ -50,6 +50,7 @@ protected:
50 usleep( rand.rand(1000000) ); 50 usleep( rand.rand(1000000) );
51 while( bRunning ) 51 while( bRunning )
52 { 52 {
53 dispUpd( ind, '.' );
53 mRW.lockWrite(); 54 mRW.lockWrite();
54 dispUpd( ind, 'W' ); 55 dispUpd( ind, 'W' );
55// println("Writer %1 locking.").arg( iId ); 56// println("Writer %1 locking.").arg( iId );
@@ -87,6 +88,7 @@ protected:
87 usleep( rand.rand(1000000) ); 88 usleep( rand.rand(1000000) );
88 while( bRunning ) 89 while( bRunning )
89 { 90 {
91 dispUpd( ind, '.' );
90 mRW.lockRead(); 92 mRW.lockRead();
91 dispUpd( ind, 'R' ); 93 dispUpd( ind, 'R' );
92// println("Reader %1 locking.").arg( iId ); 94// println("Reader %1 locking.").arg( iId );