Replies: 1 comment 5 replies
-
Can we make this more general, i.e., give all resource-owning OSAL types their handle macro type? This would allow Zephyr port to almost completely avoid dynamic allocation. As far as I can tell, these are Mutex, Queue, File, Directory, Task, InterruptLock, and WatchdogTimer. As discussed in #2298, I would add these typedefs to |
Beta Was this translation helpful? Give feedback.
5 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
See this discussion:
#2298
In some cases, defining the file descriptor
m_fd
to beNATIVE_INT_TYPE
can force undesirable patterns like dynamic memory allocation after initialization and nasty typecasts.This discussion would propose changing the
NATIVE_INT_TYPE
to a typedef (sayPLATFORM_FD_TYPE
) that could be defined on a platform by platform basis.Beta Was this translation helpful? Give feedback.
All reactions