Реферат: Разработка многопоточных Windows-приложений в среде Borland C Builder
{
for (;;)
{
Synchronize(OutOnForm2);
Sleep(150);
}
}
//---------------------------------------------------------------------------
T3.cpp
//---------------------------------------------------------------------------
#include <vcl.h>
#pragma hdrstop
#include "T3.h"
#include "Unit1.h"
#include "Unit3.h"
#pragma package(smart_init)
//---------------------------------------------------------------------------
__fastcall T3::T3(bool CreateSuspended)
: TThread(CreateSuspended)
{
}
//---------------------------------------------------------------------------
void __fastcall T3::OutOnForm3()
{ static int i=5;
static int k;
static int f=0;
if (f==0)
{
for (k=40;k<=100;k+=5);
{