Show
Ignore:
Timestamp:
09/23/08 15:58:49 (6 years ago)
Author:
robert
Message:

Added read-threads <numThreads> command line and read thread test back end

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • OpenSceneGraph/trunk/examples/osgunittests/osgunittests.cpp

    r8399 r8921  
    3030#include "UnitTestFramework.h" 
    3131#include "performance.h" 
     32#include "MultiThreadRead.h" 
    3233 
    3334#include <iostream> 
     
    543544    while (arguments.read("quat")) printQuatTest = true; 
    544545 
     546    int numReadThreads = 0;  
     547    while (arguments.read("read-threads", numReadThreads)) {} 
     548 
    545549    bool printPolytopeTest = false;  
    546550    while (arguments.read("polytope")) printPolytopeTest = true; 
     
    623627    } 
    624628 
     629    if (numReadThreads>0) 
     630    { 
     631        runMultiThreadReadTests(numReadThreads); 
     632        return 0; 
     633    } 
     634 
     635 
    625636    if (printPolytopeTest) 
    626637    {