[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [lwip-users] Correct way to use SNTP safely
From: |
Simon Goldschmidt |
Subject: |
Re: [lwip-users] Correct way to use SNTP safely |
Date: |
Fri, 22 Sep 2017 06:16:40 +0200 |
Wayne Uroda wrote:
> This got me to thinking, are the SNTP functions (such as sntp_init) meant to
> be called only from a particular thread, namely the tcpip_thread?
Yes.
> Every other lwip function I've used has a wrapper which invokes functions on
> the tcpip thread via the mailbox mechanism.
Well, things in src/api is meant to be called from other threads. All the rest
is single-threaded only. Sadly, this might not be clearly visible from the
include file structure...
Which functions are you talking about?
Simon