예제 #1
0
static  unsigned  InitFThreads( void )
//====================================
{
    if( ThreadsInitialized )
        return( 0 );
    if( __InitFThreadProcessing() != 0 )
        return( 1 );
    ThreadsInitialized = true;
    RTSysInit();
    return( 0 );
}
예제 #2
0
unsigned        __FInitDLL( void ) {
//============================

    __InitExceptionVectors();
    if( __InitFThreadProcessing() != 0 ) return( 0 );
#if defined( __NT__ )
    {
        if( __ASTACKSIZ != 0 ) {
            __ASTACKPTR = RMemAlloc( __ASTACKSIZ );
            if( __ASTACKPTR == NULL ) return( 0 );
            __ASTACKPTR += __ASTACKSIZ;
        }
    }
#endif
    return( 1 );
}