Hello All,

Been looking into things a bit and had a question concerning our 
SequencerThread and the use of QTime:

In src/sequencer/SequencerThread.cpp

ln 45:    QTime timer;

and 

ln 152:         if (timer.elapsed() > 3000) {
ln 153:         seq.checkForNewClients();
ln 154:         timer.restart();
ln 155:     }

I do not see timer being used elsewhere in this code.

So timer is created on the stack before we enter our primary loop.  I do not 
see any code that that actually starts the timer.  Creating a QTime from what I 
read in the Qt reference does not actually start the timer.  We need to call:
timer.start();

This will then allow us to use:
timer.elapse() to see if it has been 3 seconds [3000 milliseconds] since the 
last start() or restart().

I'm not currently tracking a bug related to this, but just ran across this as 
part of looking into the recording system exclusive events bug.

Any thoughts on this, or its fallout.  Could this be causing us not to register 
new clients on the fly on some level or are we correcting for this elsewhere?

Sincerely,
Julie S.



      

------------------------------------------------------------------------------
This SF.Net email is sponsored by the Verizon Developer Community
Take advantage of Verizon's best-in-class app development support
A streamlined, 14 day to market process makes app distribution fast and easy
Join now and get one step closer to millions of Verizon customers
http://p.sf.net/sfu/verizon-dev2dev 
_______________________________________________
Rosegarden-devel mailing list
[email protected] - use the link below to unsubscribe
https://lists.sourceforge.net/lists/listinfo/rosegarden-devel

Reply via email to