Re: [dpdk-dev] [PATCH v9 2/2] eal: add generic thread-local-storage functions
From: Dmitry Kozlyuk <hidden>
Date: 2021-01-07 14:46:32
From: Dmitry Kozlyuk <hidden>
Date: 2021-01-07 14:46:32
On Wed, 6 Jan 2021 22:35:53 +0200, Tal Shnaiderman wrote: [...]
+int
+rte_thread_tls_key_create(rte_tls_key *key, void (*destructor)(void *))
+{
+ int err;
+
+ *key = malloc(sizeof(**key));
+ if ((*key) == NULL) {
+ RTE_LOG(DEBUG, EAL, "Cannot allocate TLS key.");Missing "\n", same for Windows part. Aside from this nit, for series, Acked-by: Dmitry Kozlyuk <redacted>