leonp at plris.com
Tue Nov 2 10:41:11 CDT 2010
On Tuesday November 2 2010, Joel Sherrill wrote:
> On 11/02/2010 09:42 AM, Leon Pollak wrote:
> > Hello, all.
> > Using barrier, I have the following problem:
> > The main task releasing the barrier when everybody have started and ready
> > to work does not know the exact number of tasks to be started (and
> > initialize the HW). This is because there is a configuration file, which
> > decides which tasks to start, one by one.
> > Releasing barrier manually also is not the best approach, as the main
> > task does not know how much time does it take for each task to
> > initialize its HW and be ready to start.
> > So, the best solution for me would be the ability to "correct" the update
> > the maximum_waiters parameter in the barrier_create call.
> > But how can this be done?
> Add a new directive? and supporting core service?
> FWIW we are available for small tasks like this.
I think - no. Just a check in "create" call that the existing barrier is
"recreated" with the new value...:-)
More information about the rtems-users