🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: SetEventTimer routine holds TThread task?

#15355
From: Remy Lebeau (TeamB)
Date: Mon, 07 Jul 2003 01:53
29 lines
1963 bytes
"Phuoc Can HUA" <home}a+t{huaonline.com> wrote in message
news:oprrwu2pcgbq7az6@newsgroups.borland.com...
> In my program, I've got a TThread playing MIDI
> and a timer event (setEventTimer) doing some graphic jobs.

There is no setEventTimer() function.  Are you referring to timeSetEvent()
instead?

> Since the graphic part is getting complicated the MIDI
> sounds broken. I've got the feeling that the timer event
> has exclusive previllege so that the TThread is hold while
> the graphic routine is processed.
> - Is that true?

If you are, in fact, refering to timeSetEvent(), than it runs in its own
thread, not in the TThread at all.

> - Will TTimer solve this problem?

That'll probably make it worse, not better.

> - Any other solution?

Please show your actual code.  What does your thread actually do?  What does
your timer actually do?


Gambit
Technical Details
Message-ID: <3f08d164@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-03!sn-xit-01!sn-xit-08!supernews.com!priapus.visi.com!news-out.visi.com!petbe.visi.com!news.maxwell.syr.edu!small1.nntp.aus1.giganews.com!border1.nntp.aus1.giganews.com!nntp.giganews.com!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mail
References: <oprrwu2pcgbq7az6@newsgroups.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 10cc67,a436a021eb0521f3
X-Google-Attributes: gid10cc67,public
X-Google-ArrivalTime: 2003-07-06 19:00:28 PST
From: "Remy Lebeau \(TeamB\)" <gambit47@yahoo.com>
Newsgroups: borland.public.cppbuilder.nativeapi
References: <oprrwu2pcgbq7az6@newsgroups.borland.com>
Subject: Re: SetEventTimer routine holds TThread task?
Date: Sun, 6 Jul 2003 18:53:06 -0700
Lines: 31
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2800.1158
X-MIMEOLE: Produced By Microsoft MimeOLE V6.00.2800.1106
NNTP-Posting-Host: 207.175.226.26
Message-ID: <3f08d164@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1057542500 207.175.226.26 (6 Jul 2003 18:48:20 -0700)
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-03!sn-xit-01!sn-xit-08!supernews.com!priapus.visi.com!news-out.visi.com!petbe.visi.com!news.maxwell.syr.edu!small1.nntp.aus1.giganews.com!border1.nntp.aus1.giganews.com!nntp.giganews.com!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mail