This is the mail archive of the ecos-discuss@sources.redhat.com mailing list for the eCos project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: cyg_scheduler_lock


> >   If I lock the scheduler during the thread then no DSR can occur, no
> > other thread can gain the CPU.
> >   Is it safe to use cyg_scheduler_lock or unlock inside a DSR?
>
> Yes they are safe in a DSR as long as they are balanced (you only lock as
> many as you unlock).

  But it must be balanced in each DSR, isn't it? And this makes it completely
unuseful to use this inside DSRs.



Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]