comparison UnitTestsSources/MultiThreadingTests.cpp @ 2606:f2b9d3256060 jobs

SystemCallOperation
author Sebastien Jodogne <s.jodogne@gmail.com>
date Sat, 19 May 2018 15:10:26 +0200
parents 76ef12fa136c
children 3ff4c50647ea
comparison
equal deleted inserted replaced
2605:1e11b0229e04 2606:f2b9d3256060
797 boost::this_thread::sleep(boost::posix_time::milliseconds(150)); 797 boost::this_thread::sleep(boost::posix_time::milliseconds(150));
798 798
799 LuaJobManager::Lock lock(lua, engine); 799 LuaJobManager::Lock lock(lua, engine);
800 size_t a = lock.AddLogOperation(); 800 size_t a = lock.AddLogOperation();
801 size_t b = lock.AddLogOperation(); 801 size_t b = lock.AddLogOperation();
802 size_t c = lock.AddSystemCallOperation("echo");
802 lock.AddStringInput(a, boost::lexical_cast<std::string>(i)); 803 lock.AddStringInput(a, boost::lexical_cast<std::string>(i));
803 lock.AddNullInput(a); 804 lock.AddNullInput(a);
804 lock.Connect(a, b); 805 lock.Connect(a, b);
806 lock.Connect(a, c);
805 } 807 }
806 808
807 boost::this_thread::sleep(boost::posix_time::milliseconds(2000)); 809 boost::this_thread::sleep(boost::posix_time::milliseconds(2000));
808 810
809 engine.Stop(); 811 engine.Stop();