esp_http_server: update httpd_queue_work() API to use semaphore

Closes: https://github.com/espressif/esp-idf/issues/8440
This commit is contained in:
Harshit Malpani
2022-04-19 13:25:27 +05:30
parent 755233290a
commit 1bb03e17a7
3 changed files with 54 additions and 7 deletions

View File

@@ -107,6 +107,9 @@ struct httpd_data {
httpd_config_t config; /*!< HTTPD server configuration */
int listen_fd; /*!< Server listener FD */
int ctrl_fd; /*!< Ctrl message receiver FD */
#if CONFIG_HTTPD_QUEUE_WORK_BLOCKING
SemaphoreHandle_t ctrl_sock_semaphore; /*!< Ctrl socket semaphore */
#endif
int msg_fd; /*!< Ctrl message sender FD */
struct thread_data hd_td; /*!< Information for the HTTPD thread */
struct sock_db *hd_sd; /*!< The socket database */