Home
last modified time | relevance | path

Searched refs:salloc (Results 1 – 25 of 28) sorted by relevance

12

/third_party/boost/boost/context/
Dfiber_fcontext.hpp115 typename std::decay< StackAlloc >::type salloc = std::move( p->salloc_); in destroy() local
120 salloc.deallocate( sctx); in destroy()
124 fiber_record( stack_context sctx, StackAlloc && salloc, in fiber_record() argument
127 salloc_( std::forward< StackAlloc >( salloc)), in fiber_record()
154 fcontext_t create_fiber1( StackAlloc && salloc, Fn && fn) { in create_fiber1() argument
155 auto sctx = salloc.allocate(); in create_fiber1()
162 sctx, std::forward< StackAlloc >( salloc), std::forward< Fn >( fn) }; in create_fiber1()
178 fcontext_t create_fiber2( preallocated palloc, StackAlloc && salloc, Fn && fn) { in create_fiber2() argument
185 palloc.sctx, std::forward< StackAlloc >( salloc), std::forward< Fn >( fn) }; in create_fiber2()
233 fiber( std::allocator_arg_t, StackAlloc && salloc, Fn && fn) : in fiber() argument
[all …]
Dcontinuation_fcontext.hpp117 typename std::decay< StackAlloc >::type salloc = std::move( p->salloc_); in destroy() local
122 salloc.deallocate( sctx); in destroy()
126 record( stack_context sctx, StackAlloc && salloc, in record() argument
129 salloc_( std::forward< StackAlloc >( salloc)), in record()
157 fcontext_t create_context1( StackAlloc && salloc, Fn && fn) { in create_context1() argument
158 auto sctx = salloc.allocate(); in create_context1()
165 sctx, std::forward< StackAlloc >( salloc), std::forward< Fn >( fn) }; in create_context1()
181 fcontext_t create_context2( preallocated palloc, StackAlloc && salloc, Fn && fn) { in create_context2() argument
188 palloc.sctx, std::forward< StackAlloc >( salloc), std::forward< Fn >( fn) }; in create_context2()
332 callcc( std::allocator_arg_t, StackAlloc && salloc, Fn && fn) { in callcc() argument
[all …]
Dfiber_ucontext.hpp235 typename std::decay< StackAlloc >::type salloc = std::move( p->salloc_); in destroy() local
240 salloc.deallocate( sctx); in destroy()
244 fiber_capture_record( stack_context sctx, StackAlloc && salloc, Fn && fn) noexcept : in fiber_capture_record() argument
246 salloc_{ std::forward< StackAlloc >( salloc) },
286 static fiber_activation_record * create_fiber1( StackAlloc && salloc, Fn && fn) { in create_fiber1() argument
289 auto sctx = salloc.allocate(); in create_fiber1()
296 sctx, std::forward< StackAlloc >( salloc), std::forward< Fn >( fn) }; in create_fiber1()
303 salloc.deallocate( sctx); in create_fiber1()
322 static fiber_activation_record * create_fiber2( preallocated palloc, StackAlloc && salloc, Fn && fn… in create_fiber2() argument
331 palloc.sctx, std::forward< StackAlloc >( salloc), std::forward< Fn >( fn) }; in create_fiber2()
[all …]
Dcontinuation_ucontext.hpp235 typename std::decay< StackAlloc >::type salloc = std::move( p->salloc_); in destroy() local
240 salloc.deallocate( sctx); in destroy()
244 capture_record( stack_context sctx, StackAlloc && salloc, Fn && fn) noexcept : in capture_record() argument
246 salloc_{ std::forward< StackAlloc >( salloc) },
286 static activation_record * create_context1( StackAlloc && salloc, Fn && fn) { in create_context1() argument
289 auto sctx = salloc.allocate(); in create_context1()
296 sctx, std::forward< StackAlloc >( salloc), std::forward< Fn >( fn) }; in create_context1()
303 salloc.deallocate( sctx); in create_context1()
322 static activation_record * create_context2( preallocated palloc, StackAlloc && salloc, Fn && fn) { in create_context2() argument
331 palloc.sctx, std::forward< StackAlloc >( salloc), std::forward< Fn >( fn) }; in create_context2()
[all …]
Dcontinuation_winfib.hpp211 typename std::decay< StackAlloc >::type salloc = std::move( p->salloc_); in destroy() local
216 salloc.deallocate( sctx); in destroy()
220 capture_record( stack_context sctx, StackAlloc && salloc, Fn && fn) noexcept : in capture_record() argument
222 salloc_( std::forward< StackAlloc >( salloc)), in capture_record()
257 static activation_record * create_context1( StackAlloc && salloc, Fn && fn) { in create_context1() argument
260 auto sctx = salloc.allocate(); in create_context1()
268 sctx, std::forward< StackAlloc >( salloc), std::forward< Fn >( fn) }; in create_context1()
275 static activation_record * create_context2( preallocated palloc, StackAlloc && salloc, Fn && fn) { in create_context2() argument
285 palloc.sctx, std::forward< StackAlloc >( salloc), std::forward< Fn >( fn) }; in create_context2()
456 callcc( std::allocator_arg_t, StackAlloc && salloc, Fn && fn) { in callcc() argument
[all …]
Dfiber_winfib.hpp210 typename std::decay< StackAlloc >::type salloc = std::move( p->salloc_); in destroy() local
215 salloc.deallocate( sctx); in destroy()
219 fiber_capture_record( stack_context sctx, StackAlloc && salloc, Fn && fn) noexcept : in fiber_capture_record() argument
221 salloc_( std::forward< StackAlloc >( salloc)), in fiber_capture_record()
256 static fiber_activation_record * create_fiber1( StackAlloc && salloc, Fn && fn) { in create_fiber1() argument
259 auto sctx = salloc.allocate(); in create_fiber1()
267 sctx, std::forward< StackAlloc >( salloc), std::forward< Fn >( fn) }; in create_fiber1()
274 static fiber_activation_record * create_fiber2( preallocated palloc, StackAlloc && salloc, Fn && fn… in create_fiber2() argument
284 palloc.sctx, std::forward< StackAlloc >( salloc), std::forward< Fn >( fn) }; in create_fiber2()
330 fiber( std::allocator_arg_t, StackAlloc && salloc, Fn && fn) : in fiber() argument
[all …]
/third_party/boost/libs/fiber/performance/fiber/
Dskynet_detach.cpp31 void skynet( allocator_type & salloc, channel_type & c, std::size_t num, std::size_t size, std::siz… in skynet() argument
39 std::allocator_arg, salloc, in skynet()
41 std::ref( salloc), std::ref( rc), sub_num, size / div, div }.detach(); in skynet()
59 allocator_type salloc{ 2*allocator_type::traits_type::page_size() }; in main() local
61 allocator_type salloc{ allocator_type::traits_type::page_size() }; in main() local
66 skynet( salloc, rc, 0, size, div); in main()
Dskynet_join.cpp31 void skynet( allocator_type & salloc, channel_type & c, std::size_t num, std::size_t size, std::siz… in skynet() argument
40 std::allocator_arg, salloc, in skynet()
42 std::ref( salloc), std::ref( rc), sub_num, size / div, div); in skynet()
63 allocator_type salloc{ 2*allocator_type::traits_type::page_size() }; in main() local
65 allocator_type salloc{ allocator_type::traits_type::page_size() }; in main() local
70 skynet( salloc, rc, 0, size, div); in main()
Dskynet_stealing_join.cpp43 void skynet( allocator_type & salloc, channel_type & c, std::size_t num, std::size_t size, std::siz… in skynet() argument
52 std::allocator_arg, salloc, in skynet()
54 std::ref( salloc), std::ref( rc), sub_num, size / div, div); in skynet()
81 allocator_type salloc{ 2*allocator_type::traits_type::page_size() }; in main() local
92 skynet( salloc, rc, 0, size, div); in main()
Dskynet_stealing_async.cpp43 std::uint64_t skynet(allocator_type& salloc, std::uint64_t num, std::uint64_t size, std::uint64_t d… in skynet() argument
54 , std::allocator_arg, salloc in skynet()
56 , std::ref( salloc), sub_num, size, div)); in skynet()
83 allocator_type salloc{ 2*allocator_type::traits_type::page_size() }; in main() local
94 result = skynet( salloc, 0, size, div); in main()
Dskynet_stealing_detach.cpp43 void skynet( allocator_type & salloc, channel_type & c, std::size_t num, std::size_t size, std::siz… in skynet() argument
51 std::allocator_arg, salloc, in skynet()
53 std::ref( salloc), std::ref( rc), sub_num, size / div, div }.detach(); in skynet()
77 allocator_type salloc{ 2*allocator_type::traits_type::page_size() }; in main() local
88 skynet( salloc, rc, 0, size, div); in main()
Dskynet_shared_detach.cpp42 void skynet( allocator_type & salloc, channel_type & c, std::size_t num, std::size_t size, std::siz… in skynet() argument
50 std::allocator_arg, salloc, in skynet()
52 std::ref( salloc), std::ref( rc), sub_num, size / div, div }.detach(); in skynet()
83 allocator_type salloc{ 2*allocator_type::traits_type::page_size() }; in main() local
88 skynet( salloc, rc, 0, size, div); in main()
Dskynet_shared_join.cpp42 void skynet( allocator_type & salloc, channel_type & c, std::size_t num, std::size_t size, std::siz… in skynet() argument
51 std::allocator_arg, salloc, in skynet()
53 std::ref( salloc), std::ref( rc), sub_num, size / div, div); in skynet()
87 allocator_type salloc{ 2*allocator_type::traits_type::page_size() }; in main() local
92 skynet( salloc, rc, 0, size, div); in main()
/third_party/boost/boost/fiber/
Dfiber.hpp90 fiber( std::allocator_arg_t, StackAllocator && salloc, Fn && fn, Arg && ... arg) : in fiber() argument
92 fiber( std::allocator_arg_t, StackAllocator && salloc, Fn && fn, Arg ... arg) : in fiber()
95 std::allocator_arg, std::forward< StackAllocator >( salloc), in fiber()
104 … fiber( launch policy, std::allocator_arg_t, StackAllocator && salloc, Fn && fn, Arg && ... arg) : in fiber() argument
106 fiber( launch policy, std::allocator_arg_t, StackAllocator && salloc, Fn && fn, Arg ... arg) : in fiber()
108 …impl_{ make_worker_context( policy, std::forward< StackAllocator >( salloc), std::forward< Fn >( f… in fiber()
Dcontext.hpp444 boost::context::preallocated const& palloc, StackAlloc && salloc, in worker_context() argument
449 c_ = boost::context::fiber{ std::allocator_arg, palloc, std::forward< StackAlloc >( salloc),
460 StackAlloc && salloc, in make_worker_context() argument
464 auto sctx = salloc.allocate(); in make_worker_context()
477 std::forward< StackAlloc >( salloc), in make_worker_context()
/third_party/boost/libs/fiber/performance/fiber/numa/
Dskynet_stealing_detach.cpp52 void skynet( allocator_type & salloc, channel_type & c, std::size_t num, std::size_t size, std::siz… in skynet() argument
60 std::allocator_arg, salloc, in skynet()
62 std::ref( salloc), std::ref( rc), sub_num, size / div, div }.detach(); in skynet()
86 allocator_type salloc{ 2*allocator_type::traits_type::page_size() }; in main() local
100 skynet( salloc, rc, 0, size, div); in main()
/third_party/boost/boost/coroutine2/detail/
Dpush_coroutine.ipp46 push_coroutine< T >::push_coroutine( StackAllocator && salloc, Fn && fn) :
47 …cb_{ create_control_block< control_block >( std::forward< StackAllocator >( salloc), std::forward<…
106 push_coroutine< T & >::push_coroutine( StackAllocator && salloc, Fn && fn) :
107 …cb_{ create_control_block< control_block >( std::forward< StackAllocator >( salloc), std::forward<…
157 push_coroutine< void >::push_coroutine( StackAllocator && salloc, Fn && fn) :
158 …cb_{ create_control_block< control_block >( std::forward< StackAllocator >( salloc), std::forward<…
Dpull_coroutine.ipp53 pull_coroutine< T >::pull_coroutine( StackAllocator && salloc, Fn && fn) :
54 …cb_{ create_control_block< control_block >( std::forward< StackAllocator >( salloc), std::forward<…
122 pull_coroutine< T & >::pull_coroutine( StackAllocator && salloc, Fn && fn) :
123 …cb_{ create_control_block< control_block >( std::forward< StackAllocator >( salloc), std::forward<…
183 pull_coroutine< void >::pull_coroutine( StackAllocator && salloc, Fn && fn) :
184 …cb_{ create_control_block< control_block >( std::forward< StackAllocator >( salloc), std::forward<…
Dcreate_control_block.ipp31 ControlBlock * create_control_block( StackAllocator && salloc, Fn && fn) {
32 auto sctx = salloc.allocate();
51 … std::forward< StackAllocator >( salloc), std::forward< Fn >( fn) };
Dpush_control_block_cc.ipp45 …routine< T >::control_block::control_block( context::preallocated palloc, StackAllocator && salloc,
48 c{ std::allocator_arg, palloc, std::forward< StackAllocator >( salloc),
79 c{ std::allocator_arg, palloc, std::forward< StackAllocator >( salloc),
176 …utine< T & >::control_block::control_block( context::preallocated palloc, StackAllocator && salloc,
179 c{ std::allocator_arg, palloc, std::forward< StackAllocator >( salloc),
210 c{ std::allocator_arg, palloc, std::forward< StackAllocator >( salloc),
295 …::control_block::control_block( context::preallocated palloc, StackAllocator && salloc, Fn && fn) :
297 c{ std::allocator_arg, palloc, std::forward< StackAllocator >( salloc),
328 c{ std::allocator_arg, palloc, std::forward< StackAllocator >( salloc),
Dpull_control_block_cc.ipp46 …routine< T >::control_block::control_block( context::preallocated palloc, StackAllocator && salloc,
49 c{ std::allocator_arg, palloc, std::forward< StackAllocator >( salloc),
78 c{ std::allocator_arg, palloc, std::forward< StackAllocator >( salloc),
202 …utine< T & >::control_block::control_block( context::preallocated palloc, StackAllocator && salloc,
205 c{ std::allocator_arg, palloc, std::forward< StackAllocator >( salloc),
234 c{ std::allocator_arg, palloc, std::forward< StackAllocator >( salloc),
334 …tine< void >::control_block::control_block( context::preallocated palloc, StackAllocator && salloc,
337 c{ std::allocator_arg, palloc, std::forward< StackAllocator >( salloc),
366 c{ std::allocator_arg, palloc, std::forward< StackAllocator >( salloc),
/third_party/boost/boost/fiber/future/
Dasync.hpp85 async( Policy policy, std::allocator_arg_t, StackAllocator salloc, Fn && fn, Args ... args) { in async() argument
93 fiber{ policy, std::allocator_arg, salloc, in async()
107 async( Policy policy, std::allocator_arg_t, StackAllocator salloc, Allocator alloc, Fn && fn, Args … in async() argument
115 fiber{ policy, std::allocator_arg, salloc, in async()
/third_party/boost/libs/fiber/src/
Dcontext.cpp42 dispatcher_context( boost::context::preallocated const& palloc, default_stack && salloc) : in dispatcher_context() argument
44 c_ = boost::context::fiber{ std::allocator_arg, palloc, salloc,
53 default_stack salloc; // use default satck-size in make_dispatcher_context() local
54 auto sctx = salloc.allocate(); in make_dispatcher_context()
65 boost::context::preallocated{ storage, size, sctx }, std::move( salloc) } }; in make_dispatcher_context()
/third_party/boost/libs/context/doc/
Dfiber.qbk249 fixedsize_stack salloc(4048);
251 stack_context sctx(salloc.allocate());
256 my_control_structure * cs=new(sp)my_control_structure(sp,size,sctx,salloc);
266 my_control_structure(void * sp,std::size_t size,stack_context sctx,StackAllocator salloc) :
268 f{std::allocator_arg,preallocated(sp,size,sctx),salloc,entry_func} {
442 fiber(std::allocator_arg_t, StackAlloc && salloc, Fn && fn);
496 fiber(std::allocator_arg_t, StackAlloc && salloc, Fn && fn);
Dcallcc.qbk263 fixedsize_stack salloc(4048);
265 stack_context sctx(salloc.allocate());
270 my_control_structure * cs=new(sp)my_control_structure(sp,size,sctx,salloc);
280 my_control_structure(void * sp,std::size_t size,stack_context sctx,StackAllocator salloc) :
283 c=ctx::callcc(std::allocator_arg,preallocated(sp,size,sctx),salloc,entry_func);
641 continuation callcc(std::allocator_arg_t,StackAlloc salloc,Fn && fn);
644 continuation callcc(std::allocator_arg_t,preallocated palloc,StackAlloc salloc,Fn && fn);

12