| 1077 | } |
| 1078 | |
| 1079 | void cComponentManager::resetInstances() |
| 1080 | { |
| 1081 | int i; |
| 1082 | // TODO: abort processing , stop threads...etc.?? |
| 1083 | int mylastComponent = lastComponent; |
| 1084 | for (i=0; i<mylastComponent; i++) { |
| 1085 | unregisterComponentInstance(i,1); // all BUT dataMemories... |
| 1086 | } |
| 1087 | |
| 1088 | mylastComponent = lastComponent; |
| 1089 | for (i=0; i<mylastComponent; i++) { |
| 1090 | unregisterComponentInstance(i); // now free the dataMemories |
| 1091 | } |
| 1092 | nComponents = 0; |
| 1093 | lastComponent = 0; // ??? |
| 1094 | // flag that indicates if all components are set up and ready... |
| 1095 | ready = 0; |
| 1096 | isConfigured = 0; |
| 1097 | isFinalised = 0; |
| 1098 | EOI = 0; |
| 1099 | abortRequest = 0; |
| 1100 | } |
| 1101 | |
| 1102 | int cComponentManager::findComponentInstance(const char *_compname) const |
| 1103 | { |