fix variable shadowing
This commit is contained in:
parent
b128de321b
commit
0ca9c5c0aa
1 changed files with 2 additions and 2 deletions
|
@ -10,12 +10,12 @@
|
|||
using namespace boost::chrono;
|
||||
using namespace mapnik;
|
||||
|
||||
void threaded_benchmark(void test(),std::string const& name, unsigned threads) {
|
||||
void threaded_benchmark(void test(),std::string const& name, unsigned num_threads) {
|
||||
using namespace boost::chrono;
|
||||
typedef process_cpu_clock clock_type;
|
||||
process_real_cpu_clock::time_point start = process_real_cpu_clock::now();
|
||||
boost::thread_group threads;
|
||||
for (unsigned i=0;i<threads;++i)
|
||||
for (unsigned i=0;i<num_threads;++i)
|
||||
{
|
||||
threads.create_thread(test);
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue