Boost logo

Boost :

Subject: Re: [boost] review request for boost.context(jump_to.html?)
From: Oliver Kowalke (k-oli_at_[hidden])
Date: 2010-07-28 10:12:30

Am 28.07.2010 13:01, schrieb Larry Evans:
> On 07/28/10 01:42, Oliver Kowalke wrote:
>> downloadable from boost vault:
> [snip]
> The html file:
> boost.context-0.1.0/libs/context/doc/html/context/context_management/context/jump_to.html
> contains:
> -{--cut here--
> If *this refers to a context, the function saves the state of *this
> and executes the context of other.
> -}--cut here--
> What's the saved state used for? I'm guessing that maybe it's used
> to resume execution of the original context after the other context
> finishes executing. Is that right?

Right! It saves the register of the cpu (like stack pointer instruction
pointer etc.). The context must not necessarily finish its execution it
can decide to suspend itself - its state is saved and may be resumed
later (e.g. it continues its work if resumed).


Boost list run by bdawes at, gregod at, cpdaniel at, john at