🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.cppbuilder.nativeapi
Article #2324

Re: Win32 Semaphores in TThread?

#2324
From: Jonathan Benedicto
Date: Tue, 13 Mar 2007 00:35
10 lines
1533 bytes
Bob Gonder wrote:
> But don't you want the MainThread to do the drawing since it owns the
> canvas?
> That's why I mentioned TThread::Synchronize( &Display );

No, because that would penalize the speed. Ideally, the video thread should 
perform the rendering, you just can't use SetDIBitsToDevice as it is not 
thread-safe.

Jon 
Technical Details
Message-ID: <45f5f1ba$1@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news3.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail
References: <45f57403@newsgroups.borland.com> <45f59a06$1@newsgroups.borland.com> <45f59b82$1@newsgroups.borland.com> <0hqbv2dprchfsm2or89k36blc5p3ukhu25@4ax.com>

Show Full Headers
Complete Article Headers
X-Google-Thread: 10cc67,411b13b57e2ea81a
X-Google-Attributes: gid10cc67,public
X-Google-Language: ENGLISH,ASCII-7-bit
From: "Jonathan Benedicto" <invalid@nobody.com>
Newsgroups: borland.public.cppbuilder.nativeapi
References: <45f57403@newsgroups.borland.com> <45f59a06$1@newsgroups.borland.com> <45f59b82$1@newsgroups.borland.com> <0hqbv2dprchfsm2or89k36blc5p3ukhu25@4ax.com>
In-Reply-To: <0hqbv2dprchfsm2or89k36blc5p3ukhu25@4ax.com>
Subject: Re: Win32 Semaphores in TThread?
Date: Mon, 12 Mar 2007 20:35:40 -0400
Lines: 11
MIME-Version: 1.0
Content-Type: text/plain;
 format=flowed;
 charset="iso-8859-1";
 reply-type=original
Content-Transfer-Encoding: 7bit
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Windows Mail 6.0.6000.16386
X-MimeOLE: Produced By Microsoft MimeOLE V6.0.6000.16386
NNTP-Posting-Host: 74.115.18.89
Message-ID: <45f5f1ba$1@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1173746106 74.115.18.89 (12 Mar 2007 17:35:06 -0800)
Path: arc1-ca.pugleaf.net!g2news1.google.com!news3.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail