Boost logo

Boost :

Subject: Re: [boost] [context] implementation comments
From: Oliver Kowalke (oliver.kowalke_at_[hidden])
Date: 2011-03-01 15:38:13


Am 01.03.2011 21:22, schrieb Charlls Quarra:
>
> --- El mar 1-mar-11, Oliver Kowalke<oliver.kowalke_at_[hidden]> escribió:
>
>> De: Oliver Kowalke<oliver.kowalke_at_[hidden]>
>> Asunto: Re: [boost] [context] implementation comments
>> Para: boost_at_[hidden]
>> Fecha: martes, 1 de marzo de 2011, 15:44
>> Am 01.03.2011 20:20, schrieb Charlls
>> Quarra:
>>> this is good, but there are other allocations
>> happening inside both context and fiber that the user has no
>> control over. This might be smaller in comparison to the
>> stack but they are there nonetheless.
>>> It would be better to leave the user to choose the
>> allocator for any heap requests happening in the library.
>>>
>>> Charles J. Quarra
>>>
>> I don't get it - do you refer with 'other allocations' to
>> the stack
>> allocation? If yes you are free to implement your own stack
>> and passing
>> it as template arg to boost::context. Sorry - I'm not sure
>> what you mean
>> with 'choose the allocator for any heap requests happening
>> in the library'?!
>>
>> regards,
>> Oliver
>
> correction; there are no other allocations in context; only in fiber happens allocations other than the stack, for instance, boost/fiber/fiber.cpp at: 53
>
> thanks,
> Charles
to which version you are referring to? the current implementation has
asym_fiber.cpp and sym_fiber.cpp.

Oliver


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