Changeset 2133 in Sophya for trunk/ArchTOIPipe/Kernel/toimanager.cc
- Timestamp:
- Jul 26, 2002, 10:52:43 AM (23 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/ArchTOIPipe/Kernel/toimanager.cc
r2077 r2133 3 3 // Christophe Magneville 4 4 // Reza Ansari 5 // $Id: toimanager.cc,v 1.1 5 2002-06-18 21:15:19 ansariExp $5 // $Id: toimanager.cc,v 1.16 2002-07-26 08:52:43 vfebvre Exp $ 6 6 7 7 #include "toimanager.h" … … 27 27 } 28 28 29 // enregistrement d'un processeur dans la liste des processeurs pour une execution en groupe 30 31 void TOIManager::registerProcessor(TOIProcessor* proc) { 32 33 cout << "Adding processor to TOIManager for group execution" << endl; 34 processors.push_back(proc); 35 36 } 37 38 39 // demarrage de tous les processeurs 40 41 void TOIManager::startAll() { 42 for (vector<TOIProcessor*>::iterator i = processors.begin(); 43 i != processors.end(); i++) { 44 TOIProcessor* proc = *i; 45 cout << "******************" << endl; 46 cout << "starting processor " << endl; 47 cout << "******************" << endl; 48 proc->start(); 49 cout << "processor started " << endl; 50 cout << "******************" << endl; 51 } 52 } 53 54 55 29 56 void TOIManager::setRequestedSample(int begin, int end) { 30 57 reqBegin = begin; … … 46 73 47 74 void TOIManager::joinAll() { 75 waitForAll(); 76 } 77 78 void TOIManager::waitForAll() { 48 79 for (vector<pthread_t*>::iterator i = threads.begin(); 49 80 i != threads.end(); i++) {
Note:
See TracChangeset
for help on using the changeset viewer.