diff options
author | Zach Mullen <zach.mullen@kitware.com> | 2010-03-02 20:34:37 (GMT) |
---|---|---|
committer | Zach Mullen <zach.mullen@kitware.com> | 2010-03-02 20:38:02 (GMT) |
commit | 767ffba8ff37ccb510707b768086cb189970d8c6 (patch) | |
tree | 64f088977d94731b9a2a34416d806f4dcd38cfae /Source/CTest/cmCTestMultiProcessHandler.h | |
parent | 634c3113ed53cd05230e7c6418e6f9c5b5e630b2 (diff) | |
download | CMake-767ffba8ff37ccb510707b768086cb189970d8c6.zip CMake-767ffba8ff37ccb510707b768086cb189970d8c6.tar.gz CMake-767ffba8ff37ccb510707b768086cb189970d8c6.tar.bz2 |
Added RESOURCE_LOCK test property.
Diffstat (limited to 'Source/CTest/cmCTestMultiProcessHandler.h')
-rw-r--r-- | Source/CTest/cmCTestMultiProcessHandler.h | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/Source/CTest/cmCTestMultiProcessHandler.h b/Source/CTest/cmCTestMultiProcessHandler.h index ebec6c7..d4f6c71 100644 --- a/Source/CTest/cmCTestMultiProcessHandler.h +++ b/Source/CTest/cmCTestMultiProcessHandler.h @@ -55,7 +55,7 @@ public: cmCTestTestHandler * GetTestHandler() { return this->TestHandler; } -protected: +protected: // Start the next test or tests as many as are allowed by // ParallelLevel void StartNextTests(); @@ -83,6 +83,9 @@ protected: bool CheckCycles(); int FindMaxIndex(); inline size_t GetProcessorsUsed(int index); + + void LockResources(int index); + void UnlockResources(int index); // map from test number to set of depend tests TestMap Tests; TestCostMap TestCosts; @@ -99,6 +102,7 @@ protected: std::vector<cmStdString>* Passed; std::vector<cmStdString>* Failed; std::vector<std::string> LastTestsFailed; + std::set<std::string> LockedResources; std::vector<cmCTestTestHandler::cmCTestTestResult>* TestResults; size_t ParallelLevel; // max number of process that can be run at once std::set<cmCTestRunTest*> RunningTests; // current running tests |