This is an automated email from the ASF dual-hosted git repository.

jerzy pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/mynewt-core.git

commit 8a8fe43a275fb77d7239d81af563429a1ea35f70
Author: Jerzy Kasenberg <jerzy.kasenb...@codecoup.pl>
AuthorDate: Tue Sep 27 20:44:06 2022 +0200

    lwipopts: Add restriction for thread safe heap
    
    Default lwipopts.h defines MEM_LIBC_MALLOC that means
    that standard stdlib functions malloc/calloc/free will be
    used by LWIP.
    This adds restriction that requires baselibc heap functions
    to be thread safe.
---
 net/ip/lwip_mn/lwipopts/syscfg.yml | 21 +++++++++++++++++++++
 1 file changed, 21 insertions(+)

diff --git a/net/ip/lwip_mn/lwipopts/syscfg.yml 
b/net/ip/lwip_mn/lwipopts/syscfg.yml
new file mode 100644
index 000000000..b95a4f9d6
--- /dev/null
+++ b/net/ip/lwip_mn/lwipopts/syscfg.yml
@@ -0,0 +1,21 @@
+# Licensed to the Apache Software Foundation (ASF) under one
+# or more contributor license agreements.  See the NOTICE file
+# distributed with this work for additional information
+# regarding copyright ownership.  The ASF licenses this file
+# to you under the Apache License, Version 2.0 (the
+# "License"); you may not use this file except in compliance
+# with the License.  You may obtain a copy of the License at
+#
+#  http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing,
+# software distributed under the License is distributed on an
+# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+# KIND, either express or implied.  See the License for the
+# specific language governing permissions and limitations
+# under the License.
+#
+
+syscfg.restrictions:
+    # As long as MEM_LIBC_MALLOC is 1 this restriction applies
+    - 'BASELIBC_THREAD_SAFE_HEAP_ALLOCATION'

Reply via email to