[Kstars-devel] Plans for threading in KStars

Akarsh Simha akarshsimha at gmail.com
Sun Oct 30 07:09:59 UTC 2011


1. Fork in StarComponent::draw() at starcomponent.cpp:284, before
   while( region.hasNext() )

2. Each StarObject has a QMutex in it.

3. Computation thread calls various computational routines (which
   acquire a lock on the StarObject and update the coordinates)

4. Draw thread checks the updateID on the star and if it is not the
   drawID, it just waits. When updateID becomes drawID, it acquires a
   mutex on the star and executes drawPointSource() to draw the star.

Further TODO: Keep computing and caching future values of positions.


More information about the Kstars-devel mailing list