Skip to content

Commit

Permalink
Slightly change some parameters
Browse files Browse the repository at this point in the history
  • Loading branch information
mourisl committed Jan 19, 2015
1 parent c174a55 commit ed7ce13
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions bloom_filter.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -778,6 +778,7 @@ class bloom_filter
std::size_t i, k ;
for ( k = 1 ; k <= (std::size_t)in ; k *= 2 )
;
k *= 2 ;
lockMask = k - 1 ;
locks = ( pthread_mutex_t * )malloc( sizeof( pthread_mutex_t ) * k ) ;
for ( i = 0 ; i < k ; ++i )
Expand Down
3 changes: 2 additions & 1 deletion main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -757,9 +757,10 @@ int main( int argc, char *argv[] )
//arg.readBatch = readBatch ;
arg.lock = &errorCorrectionLock ;
arg.badQuality = badQuality ;
arg.batchSize = 0 ;
arg.batchFinished = 0 ;

if ( numOfThreads > 10 )
if ( numOfThreads >= 6 )
useOutputThread = 1 ;

while ( 1 )
Expand Down

0 comments on commit ed7ce13

Please sign in to comment.