[prev in list] [next in list] [prev in thread] [next in thread]
List: linux-audio-dev
Subject: RE: [linux-audio-dev] problems creating/managing pthread stuff (audio-app related)
From: "Ivica Bukvic" <ico () fuse ! net>
Date: 2001-11-26 20:54:41
[Download RAW message or body]
I'd prefer it to be a separate thread due to its time-critical nature.
Although, I must admit this is my first attempt at creating such
application, compounded with the first GUI-app creation, so I am trying
to tackle a lot of problems at the same time. That being said, I am
going to stick with my current design until I get the app up-and-running
to a point I can claim it is "useful." Following that, I'll most likely
sourceforge it and from then on, the sky's the limit :-).
Ivica Ico Bukvic, composer, computer consultant & audio designer
http://meowing.ccm.uc.edu/~ico/
ico@fuse.net
============================
"To be is to do" - Socrates
"To do is to be" - Sartre
"Do be do be do" - Sinatra
"I am" - God
-----Original Message-----
From: owner-linux-audio-dev@music.columbia.edu
[mailto:owner-linux-audio-dev@music.columbia.edu] On Behalf Of Fred
Gleason
Sent: Monday, November 26, 2001 9:02 AM
To: linux-audio-dev@music.columbia.edu
Subject: Re: [linux-audio-dev] problems creating/managing pthread stuff
(audio-app related)
On 21 Nov 2001, Ivica Bukvic wrote:
> Hi all! Currently I am working on an app that needs to have a timer
set
> up as a separate thread, but the problem is that I've been designing
the
> whole project in Kdevelop (using qt), and my main window is one big
> Instance of a class which also possesses a Method which is responsible
> for updating the Timer gui (i.e. milliseconds, seconds, minutes etc.).
Does it have to be a seperate thread? Why not use GTimer? e.g:
GTimer *timer=new GTimer(this,"timer");
connect(timer,SIGNAL(timeout()),this,SLOT(timer_handler()));
timer.start(interval);
Cheers!
|-----------------------------------------------------------------------
--|
|Frederick F. Gleason, Jr.|WAVA Radio - 105 FM |Voice: 1-(703)-807-2266
|
| Director of Engineering |1901 N. Moore Street| FAX: 1-(703)-807-2245
|
| |Arlington, VA 22209 | Web:
HTTP://www.wava.com|
|-----------------------------------------------------------------------
--|
| Logic is a way to go wrong with confidence.
|
| --Robert Heinlein
|
| "The Notebooks of Lazarus Long"
|
|-----------------------------------------------------------------------
--|
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic