Enthernet Code
DIIDevHeads IoT Integration Server
•Created by Dtynin on 6/24/2024 in #middleware-and-os
Is it safe to cast the osThreadId pointer to a 32-bit integer for a unique thread ID across platform
Hi @Dtynin , Casting a
osThreadId
pointer to a 32-bit integer is generally not safe and should be avoided, instead you can try maintain a mapping or using a 64-bit Integer.
this is how your code should look like for maintaining a map 👇
4 replies