xiaoxiang781216 commented on code in PR #21470:
URL: https://github.com/apache/nuttx/pull/21470#discussion_r4574633572
##########
libs/libc/tls/tls_emutls.c:
##########
@@ -269,11 +326,55 @@ void tls_emutls_destruct(void)
return;
}
+ nxmutex_lock(&g_emutls_lock);
+ list_delete(&array->node);
tls->tl_emutls = NULL;
+ nxmutex_unlock(&g_emutls_lock);
+
for (i = 0; i < array->size; i++)
{
lib_free(array->data[i]);
}
lib_free(array);
}
+
+/****************************************************************************
+ * Name: lib_emutls_release
+ *
+ * Description:
+ * Free the copies, in every thread, of the variables whose control
+ * objects are in [start, start + size), and free their indexes. The
+ * loader calls it before it frees the data of a module.
+ *
+ ****************************************************************************/
+
+void lib_emutls_release(FAR const void *start, size_t size)
Review Comment:
change to static
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]