anchao commented on PR #12427: URL: https://github.com/apache/nuttx/pull/12427#issuecomment-2141567513
> but not all products can easily predicate the accuracy number of threads required by runtime. PIDHASH_INITIAL_LENGTH plus the static array could satisfy both usages. Yes, what I mean is not to completely remove the dynamic alloc of g_pidhash, just add the maximum number of tasks in deterministic design time. ``` #if CONFIG_MAX_TASKS == 0 FAR struct tcb_s **g_pidhash; #else FAR struct tcb_s g_pidhash[CONFIG_MAX_TASKS]; #endif ``` -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
