C++ Builder Multi-threading
Posted on 1999-01-15
__fastcall TSomeThread::TSomeThread(bool CreateSuspended): TThread(CreateSuspended)
Priority = tpNormal;
void _fastcall TSomeThread::Execute()
Here is the basic code for my thread object TSomeThread. Let's say I have a TForm with a bunch of TEdit boxes on it and I want a thread that does some calculations and continuously writes the data to these TEdit boxes while the TForm is open. In other words, the display is "live". Do I need to do a Synchronize for everyone of my TEdit boxes since they're all objects? If not, what do I do and where would I call my Execute() function so it starts as soon as this TForm is openned with a TButton push that calls TForm->Show()?
My question is a bit vague, but I need as much info on multi-threading as possible.