[Tinyos-devel] SplitControl Power Manager
klueska at cs.wustl.edu
Mon Mar 2 13:04:13 PST 2009
Patch added. Thanks.
On Mon, Mar 2, 2009 at 6:32 AM, Roman Lim <rlim at ee.ethz.ch> wrote:
> I recently had a case, where the DeferredPowerManager did not work
> properly. If a client requests the resource and the powermanager is in
> the deferring mode, it calls splitcontrol.start. if this call does not
> return SUCCESS, but EALREADY, as it is supposed to do, the Powermanager
> (DefaultResourceOwner) never releases the resource.
> I added a patch that checks for this cases and releases the resource
> properly. I introduced also another atomic section (line 109) because I
> don't believe that the stopTimer and stopping states are protected from
> the async access in ResourceDefaultOwner.requested.
> I think the same changes would also make sense in the non-deferred case
> for splitphase.
> If someone could check this and commit it to the cvs...
More information about the Tinyos-devel