Article

From:
To:
Jens Gruschel
Subject:
Re: How threadsafe is TBitmap
Newsgroup:
embarcadero.public.delphi.graphics

Re: How threadsafe is TBitmap

Jens Gruschel wrote:

> > Very special case.
> 
> It's not so special if you want to execute an image processing
> operation on a multi core machine and wait for the result in the main
> thread, something like (pseudo code):
> 
> StartThreads(GetNumberOfProcessors);
> WaitForThreads;

In other words stop main thread (GUI). As I aldeady said:
> > Freezing GUI is not acceptable.

> > I would like to know for sure: do I have to do Canvas.Lock or such
> > the lock is unnecessary?
> 
> Then you have to use locking.

OK, thank you for explanation.
-- 
Alex
FYI: Phrase searches are enclosed in either single or double quotes
 
 
Originally created by
Tamarack Associates
Fri, 15 Nov 2024 16:40:53 UTC
Copyright © 2009-2024
HREF Tools Corp.