void llEnter()
{
Error_Block eb;
// If we don't have our semaphore yet, allocate one with "1" entry
if( !hSemGate )
{
if( !(hSemGate = Semaphore_create( 1, 0, &eb )) )
{
DbgPrintf(DBG_ERROR,"Could not create llEnter() semaphore");
return;
}
}
// Wait on entering the stack.
Semaphore_pend( hSemGate, (UINT32) ti_sysbios_BIOS_WAIT_FOREVER );
// If case something goes wrong with the semaphore, track
// problems entering the stack
if( InKernel )
DbgPrintf(DBG_ERROR,"Illegal call to llEnter()");
InKernel=1;
}
请问,NDK里的recvnc()里调用的IIEnter()里的hSemGate信号量在哪产生的?谢谢!!!