Boost logo

Boost :

Subject: Re: [boost] [msm] Async transition
From: Dave Abrahams (dave_at_[hidden])
Date: 2010-08-27 17:32:20


On Thu, Aug 26, 2010 at 12:14 PM, Christophe Henry
<christophe.j.henry_at_[hidden]> wrote:
> I could replace:
>
> lock() // whatever you need for locking
> fsm.process_event(event());
> unlock();
>
> by:
>
> fsm.process_event();
>
> where process_event would lock at the beginning and unlock at the end,
> but it seems pretty limited.

It also prematurely imposes a locking granularity that may not be
appropriate for all applications.

-- 
Dave Abrahams
BoostPro Computing
http://www.boostpro.com

Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk