Ignore:
Timestamp:
Jul 26, 2002, 10:52:43 AM (23 years ago)
Author:
vfebvre
Message:

startAll sur TOIManager

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/ArchTOIPipe/Kernel/toimanager.cc

    r2077 r2133  
    33//                               Christophe Magneville
    44//                               Reza Ansari
    5 // $Id: toimanager.cc,v 1.15 2002-06-18 21:15:19 ansari Exp $
     5// $Id: toimanager.cc,v 1.16 2002-07-26 08:52:43 vfebvre Exp $
    66
    77#include "toimanager.h"
     
    2727}
    2828
     29// enregistrement d'un processeur dans la liste des processeurs pour une execution en groupe
     30
     31void 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
     41void 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
    2956void TOIManager::setRequestedSample(int begin, int end) {
    3057  reqBegin = begin;
     
    4673
    4774void TOIManager::joinAll() {
     75  waitForAll();
     76}
     77
     78void TOIManager::waitForAll() {
    4879  for (vector<pthread_t*>::iterator i = threads.begin();
    4980       i != threads.end(); i++) {
Note: See TracChangeset for help on using the changeset viewer.