Changeset 3012

Show
Ignore:
Timestamp:
12/13/99 11:26:57 (14 years ago)
Author:
ucaccsp
Message:

Tweak to shutdown code.
Left the thread priority stuff in - it's the UI which uses all the CPU
time, looking into it...

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • rat/trunk/main_engine.c

    r3011 r3012  
    101101 
    102102#ifdef WIN32 
    103         /* Not sure what the correct priority should be... rat-3.0.x uses  */ 
    104         /* THREAD_PRIORITY_TIME_CRITICAL, but that's maybe too high. [csp] */ 
    105103        SetThreadPriority(GetCurrentThread(), THREAD_PRIORITY_ABOVE_NORMAL); 
    106104#else 
    107         signal(SIGINT, signal_handler);  
     105        signal(SIGINT, signal_handler);  
    108106        debug_set_core_dir(argv[0]); 
    109107#endif 
     
    321319        pdb_destroy(&sp->pdb); 
    322320 
     321        for (j = 0; j < sp->rtp_session_count; j++) { 
     322                rtp_send_bye(sp->rtp_session[j]); 
     323                rtp_done(sp->rtp_session[j]); 
     324                rtp_callback_exit(sp->rtp_session[j]); 
     325        } 
     326 
    323327        /* Inform other processes that we're about to quit... */ 
    324328        mbus_qmsgf(sp->mbus_engine, "()", FALSE, "mbus.bye", ""); 
     
    334338        mbus_exit(sp->mbus_engine); 
    335339 
    336         for (j = 0; j < sp->rtp_session_count; j++) { 
    337                 rtp_send_bye(sp->rtp_session[j]); 
    338                 rtp_done(sp->rtp_session[j]); 
    339                 rtp_callback_exit(sp->rtp_session[j]); 
    340         } 
    341  
    342340        session_exit(sp); 
    343341        converters_free();