Changeset 2753 in Sophya for trunk/SophyaLib/SysTools
- Timestamp:
- May 23, 2005, 6:20:59 PM (20 years ago)
- Location:
- trunk/SophyaLib/SysTools
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/SophyaLib/SysTools/commander.cc
r2680 r2753 1925 1925 if ((*it).second.cex) { 1926 1926 // Doit-on l'executer sous forme de thread separe ? 1927 if ((args.size()>0) && (args[args.size()-1] == "&")) { 1927 if ( (args.size()>0) && (args[args.size()-1] == "&") && 1928 ((*it).second.cex->IsThreadable(keyw)) ) { 1928 1929 ThrId++; 1929 1930 CommandExeThr * thr = new CommandExeThr(ThrId, (*it).second.cex, keyw, args, toks); -
trunk/SophyaLib/SysTools/commander.h
r2671 r2753 52 52 virtual ~CmdExecutor() {} ; 53 53 // keyw : Le mot cle associe , args: Arguments de la commande 54 //! command execution method for a command defined by keyword and its arguments. 54 55 virtual int Execute(string& keyw, vector<string>& args, string& toks)=0; 56 //! Return true if the command \b keyw is thread compatible 57 virtual bool IsThreadable(string const & keyw) { return false; } 55 58 }; 56 59 -
trunk/SophyaLib/SysTools/zthread.h
r2671 r2753 110 110 } 111 111 } 112 //! To avoid warnings about unused variables 113 inline int NOp() { return _sigbr; } 112 114 113 115 private:
Note:
See TracChangeset
for help on using the changeset viewer.