Commit 25a78c46 authored by Dominik Charousset's avatar Dominik Charousset

Update to latest upstream branch

parent 374c4240
...@@ -8,7 +8,7 @@ ...@@ -8,7 +8,7 @@
#include "net-test.hpp" #include "net-test.hpp"
#include "caf/async/bounded_buffer.hpp" #include "caf/async/spsc_buffer.hpp"
#include "caf/net/middleman.hpp" #include "caf/net/middleman.hpp"
#include "caf/net/socket_guard.hpp" #include "caf/net/socket_guard.hpp"
#include "caf/net/stream_socket.hpp" #include "caf/net/stream_socket.hpp"
...@@ -182,7 +182,7 @@ BEGIN_FIXTURE_SCOPE(fixture) ...@@ -182,7 +182,7 @@ BEGIN_FIXTURE_SCOPE(fixture)
SCENARIO("subscriber adapters wake up idle socket managers") { SCENARIO("subscriber adapters wake up idle socket managers") {
GIVEN("an actor pushing into a buffer resource") { GIVEN("an actor pushing into a buffer resource") {
static constexpr size_t num_items = 79; static constexpr size_t num_items = 79;
auto [rd, wr] = async::make_bounded_buffer_resource<int32_t>(8, 2); auto [rd, wr] = async::make_spsc_buffer_resource<int32_t>(8, 2);
sys.spawn([wr{wr}](event_based_actor* self) { sys.spawn([wr{wr}](event_based_actor* self) {
self->make_observable().repeat(42).take(num_items).subscribe(wr); self->make_observable().repeat(42).take(num_items).subscribe(wr);
}); });
......
...@@ -140,7 +140,7 @@ SCENARIO("publisher adapters suspend reads if the buffer becomes full") { ...@@ -140,7 +140,7 @@ SCENARIO("publisher adapters suspend reads if the buffer becomes full") {
GIVEN("an actor reading from a buffer resource") { GIVEN("an actor reading from a buffer resource") {
static constexpr size_t num_items = 13; static constexpr size_t num_items = 13;
std::vector<int32_t> outputs; std::vector<int32_t> outputs;
auto [rd, wr] = async::make_bounded_buffer_resource<int32_t>(8, 2); auto [rd, wr] = async::make_spsc_buffer_resource<int32_t>(8, 2);
sys.spawn([rd{rd}, &outputs](event_based_actor* self) { sys.spawn([rd{rd}, &outputs](event_based_actor* self) {
self // self //
->make_observable() ->make_observable()
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment