aboutsummaryrefslogtreecommitdiffstats
path: root/erts/test/ethread_SUITE.erl
diff options
context:
space:
mode:
authorLukas Larsson <[email protected]>2019-02-18 20:21:14 +0100
committerLukas Larsson <[email protected]>2019-02-18 20:33:52 +0100
commitfccaf185f657cbbfd61dc2104bf220f5396a2078 (patch)
tree9ef0136342a163c3bae8bf04fbc74d99d521d722 /erts/test/ethread_SUITE.erl
parent5548b539bbf75f17a178a8352d56d80a5218c6b2 (diff)
downloadotp-fccaf185f657cbbfd61dc2104bf220f5396a2078.tar.gz
otp-fccaf185f657cbbfd61dc2104bf220f5396a2078.tar.bz2
otp-fccaf185f657cbbfd61dc2104bf220f5396a2078.zip
erts: Add yield via timeout to inet read_packet
The idea here is that the timeout of 0 will work like a yield so that that we don't starve other ports/processes, but it is faster than the select trigger. We don't deselect on the socket because it does not matter if it is triggered laster or not as we'll just get an EAGAIN. Doing this also circumvents the fact that no select is done on active true style sockets until all I/O has been handled. So in a system with a lot of active true style I/O this will could be very benificial.
Diffstat (limited to 'erts/test/ethread_SUITE.erl')
0 files changed, 0 insertions, 0 deletions