Changeset 79016


Ignore:
Timestamp:
Jun 20, 2012, 9:41:38 AM (6 years ago)
Author:
olli
Message:

context: update docu

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/libs/context/doc/fcontext.qbk

    r78189 r79016  
    3434
    3535            // creates and manages a protected stack (with guard page)
    36             boost::ctx::protected_stack stack( boost::ctx::default_stacksize() );
    37 
    38             // let fcontext_t fc use stack
    39             fc.fc_stack.base = stack.address();
     36            ctx::stack_allocator alloc;
     37            fc.fc_stack.base = alloc.allocate(ctx::minimum_stacksize());
    4038            fc.fc_stack.limit =
    41                 static_cast< char * >( fc.fc_stack.base) - stack.size();
     39                static_cast< char * >( fc.fc_stack.base) - ctx::minimum_stacksize();
    4240
    4341            // context fc uses f() as context function
Note: See TracChangeset for help on using the changeset viewer.