Boost logo

Boost :

Subject: Re: [boost] review request for boost.context
From: ecyrbe (ecyrbe_at_[hidden])
Date: 2010-07-28 03:51:25


2010/7/28 Oliver Kowalke <k-oli_at_[hidden]>

> downloadable from boost vault:
>
> http://www.boostpro.com/vault/index.php?action=downloadfile&filename=boost.context-0.1.0.zip&directory=Concurrent%20Programming&
>
> boost.context implements the POSIX ucontext functionality
> (makecontext()/swapcontext()) and WIN32 Fiber stuff.
>
> For performance reasons it provides assembler - 8x-10x faster than POSIX
> swapcontext() (because no sys call is involved).
> Please note that POSIX ucontext is now marked as deprecated by the new
> POSIX standard and may not be implemented for newer platforms (for instance
> on ARM makecontext()/swapcontext() is not provided by glibc).
>
> boost.context is the basis of boost.fiber. Phil Endecott requested to move
> this code from boost.fiber into a new lib in order to be reused by libs
> implementing some kind of cooperative scheduling (for instance
> boost.coroutine/boost.fiber).
>
> Oliver
>
>
Hi, this seems a very usefull piece of code.
How does it behave under c++ exceptions?
What about windows 64 bit implementation, only 32 bit seems implemented ?


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