Lines Matching refs:params
24 Instruction::Instruction(const std::string& name, const Params& params) in Instruction() argument
26 syscall_(params.syscall_), in Instruction()
27 repeat_(params.repeat_), in Instruction()
28 period_us_(params.period_us_), in Instruction()
29 offset_us_(params.offset_us_), in Instruction()
50 void Instruction::RunSynchronized(pthread_barrier_t* barrier, const MultithreadingParams& params) { in RunSynchronized() argument
51 int ret = pthread_setname_np(pthread_self(), params.name_.c_str()); in RunSynchronized()
54 LOGF("Name too long for thread, max 15 chars allowed: " + params.name_); in RunSynchronized()
60 if (params.sched_attr_.IsSet()) { in RunSynchronized()
61 params.sched_attr_.Set(); in RunSynchronized()
63 if (params.sched_affinity_.IsSet()) { in RunSynchronized()
64 params.sched_affinity_.Set(); in RunSynchronized()
72 const MultithreadingParams& params) { in SpawnThread() argument
73 return std::thread([=, this] { RunSynchronized(barrier, params); }); in SpawnThread()