[GRASS-dev] [GRASS GIS] #722: r.li.daemon: respect for WORKERS enviro var

GRASS GIS trac at osgeo.org
Mon Aug 17 02:20:53 EDT 2009

#722: r.li.daemon: respect for WORKERS enviro var
 Reporter:  hamish       |       Owner:  grass-dev at lists.osgeo.org
     Type:  enhancement  |      Status:  new                      
 Priority:  normal       |   Milestone:  7.0.0                    
Component:  Raster       |     Version:  svn-trunk                
 Keywords:  r.li, smp    |    Platform:  All                      
      Cpu:  All          |  

 it would be nice if r.li.daemon respected the WORKERS environment variable
 for setting the number of threads to launch.

 AFAICS most of the code can be borrowed from trunk/lib/gis/worker.c.
 (some doxygen comments would help)

 I wonder if both the pthreads and r.li.daemon fork() code should use the
 same "GRASS_WORKERS" enviro var instead of the more generic "WORKERS"
 name? or is that name some pthreads standard?

 or for that matter, if r.li.daemon should be adapted to use the grass7
 pthreads support instead of doing its own thing?


Ticket URL: <https://trac.osgeo.org/grass/ticket/722>
GRASS GIS <http://grass.osgeo.org>

More information about the grass-dev mailing list