Logo Search packages:      
Sourcecode: virtualbox-ose version File versions  Download package

void kLdrDyldSemTerm ( void   ) 

Terminates the loader semaphore.

Definition at line 111 of file kLdrDyldSem.c.

References g_Semaphore.

Referenced by kldrInit(), and kldrTerm().

{
#if K_OS == K_OS_DARWIN
    kern_return_t krc;
    semaphore_t Semaphore = g_Semaphore;
    g_Semaphore = MACH_PORT_NULL;
    krc = semaphore_destroy(mach_task_self(), Semaphore);
    kHlpAssert(krc == KERN_SUCCESS); (void)krc;

#elif K_OS == K_OS_OS2
    HMTX hmtx = g_hmtx;
    g_hmtx = NULLHANDLE;
    DosCloseMutexSem(hmtx);

#elif  K_OS == K_OS_WINDOWS
    DeleteCriticalSection(&g_CritSect);

#else
# error "port me"
#endif
}


Generated by  Doxygen 1.6.0   Back to index