udp:add tls cleanup protection to protect waitsem in udp_txdrain

Signed-off-by: wangchen <wangchen41@xiaomi.com>
This commit is contained in:
wangchen
2024-05-15 11:34:59 +08:00
committed by archer
parent 3146ea04b8
commit b0d8fd9d75
3 changed files with 14 additions and 4 deletions
+2 -2
View File
@@ -170,11 +170,11 @@ int udp_writebuffer_notifier_setup(worker_t worker,
*
****************************************************************************/
void udp_notifier_teardown(int key)
void udp_notifier_teardown(FAR void *key)
{
/* This is just a simple wrapper around work_notifier_teardown(). */
work_notifier_teardown(key);
work_notifier_teardown(*(FAR int *)key);
}
/****************************************************************************