Dtynin
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
Hey friends, Porting a product to a CMSIS RTOS. We need a 32-bit integer representing the thread ID. While is opaque, comments suggest it's a pointer. Is it safe to cast the pointer to a 32-bit integer for a unique thread ID across platforms? Why or why not?
@Middleware & OS
4 replies