@@ -169,10 +169,10 @@ template <typename data_t> class HostedBoundedSpsc {
169169 }
170170 }
171171
172- awrite_sync (&data,
173- start_offset (this ->_self_rank ) +
174- this ->_last_buf [this ->_self_rank ] % this ->_capacity ,
175- this ->_dequeuer_rank , this ->_data_win );
172+ write_sync (&data,
173+ start_offset (this ->_self_rank ) +
174+ this ->_last_buf [this ->_self_rank ] % this ->_capacity ,
175+ this ->_dequeuer_rank , this ->_data_win );
176176 awrite_sync (&new_last, 0 , this ->_self_rank , this ->_enqueuer_local_last_win );
177177 if (new_last % 10 == 0 ) {
178178 awrite_sync (&new_last, this ->_self_rank , this ->_dequeuer_rank ,
@@ -198,8 +198,8 @@ template <typename data_t> class HostedBoundedSpsc {
198198 for (int i = 0 ; i < size; ++i) {
199199 const uint64_t disp =
200200 (this ->_last_buf [this ->_self_rank ] + i) % this ->_capacity ;
201- awrite_async (data.data () + i, start_offset (this ->_self_rank ) + disp,
202- this ->_dequeuer_rank , this ->_data_win );
201+ write_async (data.data () + i, start_offset (this ->_self_rank ) + disp,
202+ this ->_dequeuer_rank , this ->_data_win );
203203 }
204204 flush (this ->_dequeuer_rank , this ->_data_win );
205205 awrite_sync (&new_last, this ->_self_rank , this ->_dequeuer_rank ,
@@ -221,10 +221,10 @@ template <typename data_t> class HostedBoundedSpsc {
221221 }
222222
223223 data_t data;
224- aread_sync (&data,
225- start_offset (this ->_self_rank ) +
226- this ->_first_buf [this ->_self_rank ] % this ->_capacity ,
227- this ->_dequeuer_rank , this ->_data_win );
224+ read_sync (&data,
225+ start_offset (this ->_self_rank ) +
226+ this ->_first_buf [this ->_self_rank ] % this ->_capacity ,
227+ this ->_dequeuer_rank , this ->_data_win );
228228
229229 *output = data;
230230 return true ;
@@ -249,18 +249,18 @@ template <typename data_t> class HostedBoundedSpsc {
249249 [this ->_cached_size [enqueuer_rank] - 1 ];
250250 --this ->_cached_size [enqueuer_rank];
251251 } else {
252- aread_async (output,
253- start_offset (enqueuer_rank) +
254- this ->_first_buf [enqueuer_rank] % this ->_capacity ,
255- this ->_dequeuer_rank , this ->_data_win );
252+ read_async (output,
253+ start_offset (enqueuer_rank) +
254+ this ->_first_buf [enqueuer_rank] % this ->_capacity ,
255+ this ->_dequeuer_rank , this ->_data_win );
256256 int nreads = std::min (this ->_batch_size ,
257257 this ->_last_buf [enqueuer_rank] - new_first);
258258 this ->_cached_size [enqueuer_rank] = nreads;
259259 for (int i = 0 ; i < nreads; ++i) {
260- aread_async (this ->_cached_data [enqueuer_rank] + nreads - i - 1 ,
261- start_offset (enqueuer_rank) +
262- (new_first + i) % this ->_capacity ,
263- this ->_dequeuer_rank , this ->_data_win );
260+ read_async (this ->_cached_data [enqueuer_rank] + nreads - i - 1 ,
261+ start_offset (enqueuer_rank) +
262+ (new_first + i) % this ->_capacity ,
263+ this ->_dequeuer_rank , this ->_data_win );
264264 }
265265 flush (this ->_dequeuer_rank , this ->_data_win );
266266 }
@@ -289,10 +289,10 @@ template <typename data_t> class HostedBoundedSpsc {
289289 this ->_first_buf [enqueuer_rank]);
290290 this ->_cached_size [enqueuer_rank] = nreads;
291291 for (int i = 0 ; i < nreads; ++i) {
292- aread_async (this ->_cached_data [enqueuer_rank] + nreads - i - 1 ,
293- start_offset (enqueuer_rank) +
294- (this ->_first_buf [enqueuer_rank] + i) % this ->_capacity ,
295- this ->_dequeuer_rank , this ->_data_win );
292+ read_async (this ->_cached_data [enqueuer_rank] + nreads - i - 1 ,
293+ start_offset (enqueuer_rank) +
294+ (this ->_first_buf [enqueuer_rank] + i) % this ->_capacity ,
295+ this ->_dequeuer_rank , this ->_data_win );
296296 }
297297 flush (this ->_dequeuer_rank , this ->_data_win );
298298 }
0 commit comments