]> granicus.if.org Git - esp-idf/commit
mdns: use binary semaphore instead of mutex when searching
authorIvan Grokhotkov <ivan@espressif.com>
Mon, 4 Mar 2019 08:59:09 +0000 (16:59 +0800)
committerbot <bot@espressif.com>
Mon, 11 Mar 2019 14:40:54 +0000 (14:40 +0000)
commit37144dfa077729ffe28c605a5e3cb96dbd5ef2b3
tree3c09f5bf9b80f97cc9cafd476cc06051be3518a9
parentd539183b40ba1add2b2dd2ff4622b0ef3fd6d84b
mdns: use binary semaphore instead of mutex when searching

mdns_search_once_t::lock is used to synchronize tasks (taken by one
task and given by the other) so it should not be a mutex.
Convert to semaphore, and rename to indicate its purpose.
components/mdns/mdns.c
components/mdns/private_include/mdns_private.h