MCPcopy Create free account
hub / github.com/ArduPilot/ardupilot / set_stack_size

Method set_stack_size

libraries/AP_HAL_Linux/Thread.cpp:242–251  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

240}
241
242bool Thread::set_stack_size(size_t stack_size)
243{
244 if (_started) {
245 return false;
246 }
247
248 _stack_size = MAX(stack_size, (size_t) PTHREAD_STACK_MIN);
249
250 return true;
251}
252
253bool PeriodicThread::_run()
254{

Callers 4

initMethod · 0.45
thread_createMethod · 0.45

Calls 1

MAXFunction · 0.85

Tested by

no test coverage detected