4747namespace bex = beman::execution;
4848namespace capy = boost::capy;
4949
50+ static counting_memory_resource g_counting_resource{
51+ capy::get_recycling_memory_resource ()};
52+
53+ auto get_counting_resource () -> std::pmr::memory_resource*
54+ {
55+ return &g_counting_resource;
56+ }
57+
5058// ===================================================================
5159// result collection
5260// ===================================================================
@@ -522,7 +530,7 @@ int main()
522530 sender_thread_pool pool (1 );
523531 sndr_read_stream stream{&pool};
524532 auto sched = pool.get_scheduler ();
525- auto * mr = capy::get_recycling_memory_resource ();
533+ auto * mr = get_counting_resource ();
526534 bex::sync_wait (bex::starts_on (sched,
527535 bex_accept (
528536 stream, grid[run][BEMAN_TASK][NATIVE_STREAM][NATIVE_EXEC_MODEL],
@@ -536,7 +544,7 @@ int main()
536544 sender_thread_pool pool (1 );
537545 sndr_io_read_stream_impl stream{&pool};
538546 auto sched = pool.get_scheduler ();
539- auto * mr = capy::get_recycling_memory_resource ();
547+ auto * mr = get_counting_resource ();
540548 bex::sync_wait (bex::starts_on (sched,
541549 bex_accept (
542550 static_cast <sndr_io_read_stream&>(stream),
@@ -551,7 +559,7 @@ int main()
551559 sender_thread_pool pool (1 );
552560 sndr_any_read_stream stream (sndr_read_stream{&pool});
553561 auto sched = pool.get_scheduler ();
554- auto * mr = capy::get_recycling_memory_resource ();
562+ auto * mr = get_counting_resource ();
555563 bex::sync_wait (bex::starts_on (sched,
556564 bex_accept (
557565 stream, grid[run][BEMAN_TASK][TYPE_ERASED_STREAM][NATIVE_EXEC_MODEL],
@@ -565,7 +573,7 @@ int main()
565573 sender_thread_pool pool (1 );
566574 sndr_sync_read_stream stream;
567575 auto sched = pool.get_scheduler ();
568- auto * mr = capy::get_recycling_memory_resource ();
576+ auto * mr = get_counting_resource ();
569577 bex::sync_wait (bex::starts_on (sched,
570578 bex_accept (
571579 stream, grid[run][BEMAN_TASK][SYNC_STREAM][NATIVE_EXEC_MODEL],
@@ -581,7 +589,7 @@ int main()
581589 sender_thread_pool pool (1 );
582590 ioaw_read_stream stream;
583591 auto sched = pool.get_scheduler ();
584- auto * mr = capy::get_recycling_memory_resource ();
592+ auto * mr = get_counting_resource ();
585593 bex::sync_wait (bex::starts_on (sched,
586594 bex_accept_ioaw (
587595 stream, grid[run][BEMAN_TASK][NATIVE_STREAM][BRIDGED_EXEC_MODEL],
@@ -595,7 +603,7 @@ int main()
595603 sender_thread_pool pool (1 );
596604 ioaw_io_read_stream_impl stream;
597605 auto sched = pool.get_scheduler ();
598- auto * mr = capy::get_recycling_memory_resource ();
606+ auto * mr = get_counting_resource ();
599607 bex::sync_wait (bex::starts_on (sched,
600608 bex_accept_ioaw (
601609 static_cast <ioaw_io_read_stream&>(stream),
@@ -611,7 +619,7 @@ int main()
611619 ioaw_read_stream concrete;
612620 capy::any_read_stream stream (&concrete);
613621 auto sched = pool.get_scheduler ();
614- auto * mr = capy::get_recycling_memory_resource ();
622+ auto * mr = get_counting_resource ();
615623 bex::sync_wait (bex::starts_on (sched,
616624 bex_accept_ioaw (
617625 stream, grid[run][BEMAN_TASK][TYPE_ERASED_STREAM][BRIDGED_EXEC_MODEL],
@@ -625,7 +633,7 @@ int main()
625633 sender_thread_pool pool (1 );
626634 ioaw_sync_read_stream stream;
627635 auto sched = pool.get_scheduler ();
628- auto * mr = capy::get_recycling_memory_resource ();
636+ auto * mr = get_counting_resource ();
629637 bex::sync_wait (bex::starts_on (sched,
630638 bex_accept_ioaw (
631639 stream, grid[run][BEMAN_TASK][SYNC_STREAM][BRIDGED_EXEC_MODEL],
0 commit comments