Srisimil Dutta

SmartDSP implementation

Discussion created by Srisimil Dutta on Oct 16, 2007
Latest reply on Oct 23, 2007 by CrasyCat
I have a doubt regarding the implementation of "osEventDelete" function in SmartDSP OS.
The implementation is in the file {install}\StarCore_Support\SmartDSP\source\common\os_event.c.
One of the statements in the function(line number 79) is
"temp_task = (os_tcb_t *) osEventReady(deleted_event, 0);"

Since "osEventReady" returns the task_id of the task, shouldn't the statement be as follows

"temp_task = (os_tcb_t *) (g_all_tasks_array + osEventReady(deleted_event, 0));"

Outcomes