PDA

View Full Version : creating periodic processes in Qt



vijayabcdef
14th July 2010, 17:28
Hi all

in a multi-process application, how to control periodicity of various Qt processes?

generally Qt will block wait on XConnection for message, which we cant control.

but if there are no messages from X server, i want process to sleep for definite time.

please help me

squidge
14th July 2010, 19:51
Is there a reason you want to do this? What are you trying to do?

There may be (easier) alternatives.

vijayabcdef
15th July 2010, 16:02
yes, i am asking purposefully.

i have a multi process application using light weight GUI implemented with svgalib.
But now there is no support for svgalib to run on 2.6linux kernel.
Hence i want to port my application on to X-Windows without losing timing performance given by various processes in my application.
Three periodic processes of my application uses GUI.
i want those tasks to be processes only, not QThreads.

In this context i asked help !

squidge
15th July 2010, 19:21
You can compile svgalib to run on 2.6 Kernel and therefore keep your code the same. No need for X. You'll probably notice that /dev/svga is now called /dev/svga0, but a symlink will give you /dev/svga if you really need that particular name.

vijayabcdef
16th July 2010, 19:27
when i tried with svgalib 1.4.3 on 2.6 kernel, response is
try vga_reset() and recompile everything with MAX_REGS set to 5564 in src/driver.h i.e to recompile svgalib.

hence downloaded latest svgalib1.9.25 and tested vbetest also with various modes.

Now GUI is compiled with new built static lib and it was fine.

but when GUI is run, screen goes blank.

the same GUI source code works fine with svgalib 1.4.3 and hence no bug with it.
but svgalib 1.9.25 's test utilities also run fine.

no reply i got from svgalib mailing list for this problem.

thats how i was helpless and i wanted to get rid off all hardware related issues by choosing Qt on X-Windows

please express your opinion

squidge
16th July 2010, 20:00
So your application neither works under X-Windows or svgalib, so I don't know what I can do to help.

vijayabcdef
17th July 2010, 15:27
any idea by anybody to make qt process periodic is welcome