diff options
author | Mike Buland <eichlan@xagasoft.com> | 2014-08-12 18:16:36 +0000 |
---|---|---|
committer | Mike Buland <eichlan@xagasoft.com> | 2014-08-12 18:16:36 +0000 |
commit | d55d73c7050e6452f18678e60b42a088175cb7ce (patch) | |
tree | 8c1e9756bfd11cf3b4cbc5ead57592c9da344b42 /src/tests/readwritemutex.cpp | |
parent | cece4c165f0d19b2fe23cdf367a4e6bba63c4a6e (diff) | |
download | libbu++-d55d73c7050e6452f18678e60b42a088175cb7ce.tar.gz libbu++-d55d73c7050e6452f18678e60b42a088175cb7ce.tar.bz2 libbu++-d55d73c7050e6452f18678e60b42a088175cb7ce.tar.xz libbu++-d55d73c7050e6452f18678e60b42a088175cb7ce.zip |
Minor tweak to the read/write mutex test.
Diffstat (limited to 'src/tests/readwritemutex.cpp')
-rw-r--r-- | src/tests/readwritemutex.cpp | 2 |
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 ); |