How to understand OS_SCHEDULE ?

How to understand OS_SCHEDULE ?

Postby Yevpator » Tue Jun 06, 2017 5:32 am

Dear,

I have failed to understand the last row in the following macro definition that resides in cocoos.h. To be more specific, I have two questions:
1. What does "case (__LINE__+ofs):" do after return command ?
2. What is the "case" doing here without any "switch "?

#define OS_SCHEDULE(ofs) os_task_internal_state_set(running_tid, __LINE__+ofs);\
running_tid = NO_TID;\
return;\
case (__LINE__+ofs):

Thanks in advance!
Yevpator
 
Posts: 1
Joined: Mon Jun 05, 2017 3:44 pm

Return to General topics

Who is online

Users browsing this forum: No registered users and 1 guest

cron