Revert r11916, r11917, r11918 and r11923.

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@11927
This commit is contained in:
Bart Van Assche
2011-07-28 10:00:38 +00:00
parent 6cf2bc2c34
commit 5dfad53389
6 changed files with 2 additions and 15 deletions

View File

@@ -305,7 +305,6 @@ static void* thread_func(void* arg)
int main(int argc, char** argv)
{
struct timespec delay = { 0, 100 * 1000 * 1000 };
const int nthreads = std::max(argc > 1 ? atoi(argv[1]) : 1, 1);
const int iterations = std::max(argc > 2 ? atoi(argv[2]) : 1, 1);
s_enable_annotations = argc > 3 ? !!atoi(argv[3]) : true;
@@ -319,7 +318,6 @@ int main(int argc, char** argv)
for (int i = 0; i < nthreads; ++i)
T[i].Create(thread_func, new smart_ptr<counter>(p));
p = NULL;
nanosleep(&delay, 0);
for (int i = 0; i < nthreads; ++i)
T[i].Join();
}