EPICS Controls Argonne National Laboratory

Experimental Physics and
Industrial Control System

1994  1995  1996  1997  1998  1999  2000  2001  <20022003  2004  2005  2006  2007  2008  2009  2010  2011  2012  2013  2014  2015  2016  2017  2018  2019  2020  2021  2022  2023  2024  Index 1994  1995  1996  1997  1998  1999  2000  2001  <20022003  2004  2005  2006  2007  2008  2009  2010  2011  2012  2013  2014  2015  2016  2017  2018  2019  2020  2021  2022  2023  2024 
<== Date ==> <== Thread ==>

Subject: Re: Sequencer priority parameter
From: Frank Lenkszus <[email protected]>
To: [email protected]
Date: Fri, 12 Apr 2002 05:36:59 -0500
Marty Kraimer answered this question. Turns out the 
sequencer will not honor  a priority parameter value 
of less than 100.

The relevant code from seq_main.c is:

        /* Specify task priority */
        pSP->taskPriority = SPAWN_PRIORITY;
        pValue = seqMacValGet(pSP->pMacros, "priority");
        if (pValue != NULL && strlen(pValue) > 0)
        {
                sscanf(pValue, "%ld", &(pSP->taskPriority));
        }
        if (pSP->taskPriority < SPAWN_PRIORITY)
                pSP->taskPriority = SPAWN_PRIORITY;
        if (pSP->taskPriority > 255)
                pSP->taskPriority = 255;

        tid = taskSpawn(ptask_name, pSP->taskPriority, SPAWN_OPTIONS,
         stack_size, (FUNCPTR)sequencer, (int)pSP, stack_size,
(int)ptask_name,
         0,0,0,0,0,0,0);

where
seq.h:#define SPAWN_PRIORITY            100

:(

Frank


-- 
------
Frank Lenkszus	 [email protected]  (630) 252-6972
Advanced Photon Source -- Controls --  Argonne National Laboratory

Replies:
task name Ian A Smith

Navigate by Date:
Prev: Re: Sequencer priority parameter Benjamin Franksen
Next: task name Ian A Smith
Index: 1994  1995  1996  1997  1998  1999  2000  2001  <20022003  2004  2005  2006  2007  2008  2009  2010  2011  2012  2013  2014  2015  2016  2017  2018  2019  2020  2021  2022  2023  2024 
Navigate by Thread:
Prev: Re: Sequencer priority parameter Benjamin Franksen
Next: task name Ian A Smith
Index: 1994  1995  1996  1997  1998  1999  2000  2001  <20022003  2004  2005  2006  2007  2008  2009  2010  2011  2012  2013  2014  2015  2016  2017  2018  2019  2020  2021  2022  2023  2024 
ANJ, 10 Aug 2010 Valid HTML 4.01! · Home · News · About · Base · Modules · Extensions · Distributions · Download ·
· Search · EPICS V4 · IRMIS · Talk · Bugs · Documents · Links · Licensing ·