Skip to content
This repository has been archived by the owner on Oct 12, 2022. It is now read-only.

Commit

Permalink
Merge pull request #50 from dawgfoto/master
Browse files Browse the repository at this point in the history
fix thread sleep time from 10ms->1ms
  • Loading branch information
jmdavis committed Aug 6, 2011
2 parents d711ae8 + ebb5b21 commit f5f6d1d
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/core/sync/rwmutex.d
Expand Up @@ -421,7 +421,7 @@ version( unittest )
if( ++numReaders > maxReaders )
maxReaders = numReaders;
}
Thread.sleep( 100_000 ); // 1ms
Thread.sleep( dur!"msecs"(1) );
synchronized( synInfo )
{
--numReaders;
Expand Down Expand Up @@ -462,7 +462,7 @@ version( unittest )
if( ++numReaders > maxReaders )
maxReaders = numReaders;
}
Thread.sleep( 100_000 ); // 1ms
Thread.sleep( dur!"msecs"(1) );
synchronized( synInfo )
{
--numReaders;
Expand All @@ -482,7 +482,7 @@ version( unittest )
if( ++numWriters > maxWriters )
maxWriters = numWriters;
}
Thread.sleep( 100_000 ); // 1ms
Thread.sleep( dur!"msecs"(1) );
synchronized( synInfo )
{
--numWriters;
Expand Down

0 comments on commit f5f6d1d

Please sign in to comment.