|
Boost : |
Subject: Re: [boost] [context review] Updated vote
From: Oliver Kowalke (oliver.kowalke_at_[hidden])
Date: 2011-03-29 16:12:18
Am 29.03.2011 08:09, schrieb Vicente BOTET:
> Please post here all the modification you want to apply to the library
> so people can make comments without been forced to see you private
> repository.
modifications:
done:
- context moveable
- context simple class/not a template
- context doesn't manage the stack (done) -> user has to safe pair of
context and stack
- SSE2 control word preserved in i386 asm too
- bool context::finished() const indicates if context finished (context
is unwound)
- function associated with context stored on top of the stack - thx do
GIovanni
- function pointer or function-object can be used with context
todo:
- re-factoring C-API: boost_fcontext_make(), boost_fcontext_jump()
- test-app for UNIX signals + boost::context
- support for stack-unwinding using DWARF facilities (eh_frame) ->
investigation if possible
regarding to stack unwinding: the user has the possibility to check if
the function called by context has finished (stack was cleaned up).
The user can decide what to do - throw stack away, do some sophisticated
work (jump back into stack and throw exception) or
if possible and implementable use a unwind() function using DWARF
facilities (eh_frame) to unwind the stack.
Oliver
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk