components/mdns: use semaphore instead of task notification bits (IDFGH-9380)

Component should not alter the task notification bits of the calling task.
This commit is contained in:
Viktor Babrian
2023-02-14 11:43:02 +01:00
parent e00e056162
commit 73f2800b59
2 changed files with 12 additions and 4 deletions

View File

@ -380,6 +380,7 @@ typedef struct mdns_server_s {
mdns_srv_item_t *services;
SemaphoreHandle_t lock;
QueueHandle_t action_queue;
SemaphoreHandle_t action_sema;
mdns_tx_packet_t *tx_queue_head;
mdns_search_once_t *search_once;
esp_timer_handle_t timer_handle;
@ -390,7 +391,6 @@ typedef struct {
union {
struct {
char *hostname;
TaskHandle_t calling_task;
} hostname_set;
char *instance;
struct {