|
Boost : |
Subject: Re: [boost] [boost::context] reusing stacks
From: Valentin Milea (valentin.milea_at_[hidden])
Date: 2012-11-27 02:59:05
How do you deallocate a context? With fc being just a struct pointer
at beginning of stack, I assumed no special action needed.
> yes, but only one context is allowed to own the stack. If the context is
> deallocated you could asign the stack to another context via
> make_fcontext() instead to deallocate it.
>
> Therefore your code is not correct (two context's share the same stack at
> the same time).
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk