forked from espressif/esp-idf
esp32: optimize wifi lock
Replace portENTER_CRITICAL/portEXIT_CRITICAL with semaphore lock if the protected resource is only accessed by different tasks
This commit is contained in:
Replace portENTER_CRITICAL/portEXIT_CRITICAL with semaphore lock if the protected resource is only accessed by different tasks