示例#1
0
文件: queue.c 项目: Bestfly/luatask
int QueGet( QUEUE *pQueue, void **ppMsg) {
#ifdef _WIN32
    WaitForSingleObject( pQueue->qNotEmpty, INFINITE);
#endif

    return( _QueGet( pQueue, ppMsg));
}
示例#2
0
int QueGet( QUEUE *pQueue, void **ppMsg) {
#ifdef _WIN32
    WaitForSingleObject( pQueue->qNotEmpty, INFINITE);
#elif defined(_arch_dreamcast)
	sem_wait(pQueue->qNotEmpty);
#endif

    return( _QueGet( pQueue, ppMsg));
}