Hello,
I like Human readable object identifiers, it helps it many cases to identify objects. But what happens after I delete the object with the name? What should I do with the memory of OS_OBJNAME ?
For ex.,
I like Human readable object identifiers, it helps it many cases to identify objects. But what happens after I delete the object with the name? What should I do with the memory of OS_OBJNAME ?
For ex.,
What should I do with the MailboxName ? Is it safe to simply do OS_free(MailboxName)?OS_MAILBOX_Create(&Mailbox, 10, 10, &Buffer);
MailboxName = OS_malloc(sizeof(OS_OBJNAME));
OS_DEBUG_SetObjName(MailboxName, &Mailbox, "My Mailbox");
...
OS_MAILBOX_Delete(&Mailbox);