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

Commit

Permalink
make unittest sleep time really 1ms
Browse files Browse the repository at this point in the history
  • Loading branch information
MartinNowak committed Aug 5, 2011
1 parent d711ae8 commit ebb5b21
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/core/sync/rwmutex.d
Original file line number Diff line number Diff line change
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 ebb5b21

Please sign in to comment.