Changeset 2755 in Sophya for trunk/SophyaPI/PIext/cxxexecutor.cc
- Timestamp:
- May 23, 2005, 6:33:02 PM (20 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/SophyaPI/PIext/cxxexecutor.cc
r2616 r2755 155 155 return(1); 156 156 } 157 // Pour synchronisation d'execution simultanee 158 ZSync zs(mutx_cxxe, 2); zs.NOp(); // 2 -> broadcast lors de la destruction 159 157 160 rc = ExecuteCXX(toks); if(rc) return(1); 158 161 … … 162 165 return(1); 163 166 } 167 // Pour synchronisation d'execution simultanee 168 ZSync zs(mutx_cxxe, 2); zs.NOp(); // 2 -> broadcast lors de la destruction 169 164 170 rc = FillUserCode(tokens[0]); if(rc) return(1); 165 171 if(tokens.size()>1) rc = FillUserFctFrF(tokens[1]); … … 181 187 return(1); 182 188 } 189 // Pour synchronisation d'execution simultanee 190 ZSync zs(mutx_cxxe, 2); zs.NOp(); // 2 -> broadcast lors de la destruction 191 183 192 rc = FillUserCode(toks,2); if(rc) return(1); 184 193 rc = FillUserFctFrS(); if(rc) return(1); … … 190 199 return(1); 191 200 } 201 // Pour synchronisation d'execution simultanee 202 ZSync zs(mutx_cxxe, 2); zs.NOp(); // 2 -> broadcast lors de la destruction 203 192 204 rc = FillUserCode(tokens[2]); if(rc) return(1); 193 205 if(tokens.size()>3) rc = FillUserFctFrF(tokens[3]); … … 197 209 198 210 } else if(kw == "c++compile") { 211 // Pour synchronisation d'execution simultanee 212 ZSync zs(mutx_cxxe, 2); zs.NOp(); // 2 -> broadcast lors de la destruction 213 199 214 if(tokens.size()>=1) rc = Compile(tokens[0]); 200 215 else rc = Compile(); … … 202 217 203 218 } else if(kw == "c++link") { 219 // Pour synchronisation d'execution simultanee 220 ZSync zs(mutx_cxxe, 2); zs.NOp(); // 2 -> broadcast lors de la destruction 221 204 222 if(tokens.size()>=2) rc = Link(tokens[0],tokens[1]); 205 223 else if(tokens.size()>=1) rc = Link(tokens[0]); … … 262 280 263 281 return(0); 282 } 283 284 /* --Methode-- */ 285 bool CxxExecutor::IsThreadable(string const & kw) 286 { 287 if ( (kw == "c++exec") || (kw == "c++execfrf") || 288 (kw == "c++create") || (kw == "c++createfrf") || 289 (kw == "c++compile") || (kw == "c++link") ) return true; 290 else return false; 264 291 } 265 292
Note:
See TracChangeset
for help on using the changeset viewer.