mirror of
https://github.com/matrix-construct/construct
synced 2024-10-04 14:48:56 +02:00
ircd::net: decorate the peek.
This commit is contained in:
parent
4db2ac3ab7
commit
11adbae89a
1 changed files with 2 additions and 2 deletions
|
@ -1474,8 +1474,8 @@ noexcept try
|
||||||
if(ec == success && type == ready::READ)
|
if(ec == success && type == ready::READ)
|
||||||
{
|
{
|
||||||
static char buf[16] alignas(16);
|
static char buf[16] alignas(16);
|
||||||
static const std::array<mutable_buffer, 1> bufs{{buf}};
|
__builtin_prefetch(buf, 1, 0); // 1 = write, 0 = no cache
|
||||||
sd.receive(bufs, sd.message_peek, ec);
|
sd.receive(ilist<mutable_buffer>{buf}, sd.message_peek, ec);
|
||||||
}
|
}
|
||||||
|
|
||||||
log.debug("socket(%p) local[%s] remote[%s] ready %s %s available:%zu",
|
log.debug("socket(%p) local[%s] remote[%s] ready %s %s available:%zu",
|
||||||
|
|
Loading…
Reference in a new issue