|
|
@@ -32,9 +32,10 @@ typedef TaskHandle_t othread_t;
|
|
|
|
|
|
static inline int httpd_os_thread_create(othread_t *thread,
|
|
|
const char *name, uint16_t stacksize, int prio,
|
|
|
- void (*thread_routine)(void *arg), void *arg)
|
|
|
+ void (*thread_routine)(void *arg), void *arg,
|
|
|
+ BaseType_t core_id)
|
|
|
{
|
|
|
- int ret = xTaskCreate(thread_routine, name, stacksize, arg, prio, thread);
|
|
|
+ int ret = xTaskCreatePinnedToCore(thread_routine, name, stacksize, arg, prio, thread, core_id);
|
|
|
if (ret == pdPASS) {
|
|
|
return OS_SUCCESS;
|
|
|
}
|