mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-04-14 10:07:39 +08:00
microRTPS: client: reserve the minimum required stack to the send/receive tasks
This commit is contained in:
parent
0b41aa3ecd
commit
162e0c7675
@ -170,7 +170,7 @@ static int launch_send_thread(pthread_t &sender_thread)
|
||||
{
|
||||
pthread_attr_t sender_thread_attr;
|
||||
pthread_attr_init(&sender_thread_attr);
|
||||
pthread_attr_setstacksize(&sender_thread_attr, PX4_STACK_ADJUSTED(4096));
|
||||
pthread_attr_setstacksize(&sender_thread_attr, PX4_STACK_ADJUSTED(2250));
|
||||
struct sched_param param;
|
||||
(void)pthread_attr_getschedparam(&sender_thread_attr, ¶m);
|
||||
param.sched_priority = SCHED_PRIORITY_DEFAULT;
|
||||
|
||||
@ -214,7 +214,7 @@ int micrortps_client_main(int argc, char *argv[])
|
||||
_rtps_task = px4_task_spawn_cmd("rtps",
|
||||
SCHED_DEFAULT,
|
||||
SCHED_PRIORITY_DEFAULT,
|
||||
4096,
|
||||
2650,
|
||||
(px4_main_t) micrortps_start,
|
||||
(char *const *)argv);
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user