www.pudn.com > HDTV_play_flash.rar > BThread.cpp
#include#pragma hdrstop #include "BThread.h" #include "Tserial_event.h" /* -------------------------------------------------------------------- */ // wan 2002/9/13 add /* -------------------------------------------------------------------- */ __fastcall BThread::BThread(): TThread(true) //创建并suspend { } //--------------------------------------------------------------------------- __fastcall BThread::~BThread() { } //--------------------------------------------------------------------------- void __fastcall BThread::Execute() //重载的,主循环 Synchronize { class Tserial_event *serial_unit; serial_unit = (Tserial_event *) OOOwner; if (serial_unit!=0) while(!Terminated) serial_unit->run(); }