Re: Are sockets thread safe? #networking


Lubos, Robert
 

Hi,

 

Yes, socket API is thread safe.

 

Regards,

Robert

 

From: users@... <users@...> On Behalf Of mbarrett via lists.zephyrproject.org
Sent: środa, 22 września 2021 20:11
To: users@...
Subject: [Zephyr-users] Are sockets thread safe? #networking

 

I would like to open multiple TCP sockets in different threads, but before diving in and writing code I thought I would check and see. Are sockets thread safe? Each thread would have sole access to the socket.

Thanks!

Join users@lists.zephyrproject.org to automatically receive all group messages.