data1 = data1 | 0x01;
StatusType OSGetResource( ResourceType resId )
{
...
#endif /* defined(OSRESOURCEISR) */
{
--> if (OsRunning->taskId resId->prio )
{ /* or resource with lower priority */
OSRETERROR( E_OS_ACCESS, OSServiceId_GetResource, resId );
}
...
Message Edited by Thomas Kintzel on 2006-10-0610:14 AM
Message Edited by CrasyCat on 2007-04-13 01:42 PM
func1 ( ) { GetResource ( Resource_A ) ... Release Resource ( Resource_A ) } TASK ( TASK_1 ) { ... func1 () ... } TASK ( TASK_2 ) { ... func1 () ... }
Message Edited by Thomas Kintzel on 2006-10-0902:27 AM
Message Edited by J2MEJediMaster on 2006-10-09 03:45 PM