diff options
author | Ali Mohammad Pur <ali.mpfard@gmail.com> | 2021-10-04 15:12:33 +0330 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2021-10-04 15:31:26 +0200 |
commit | 29acb7fcf8993d96d7c776d6e60dbb7464d8ebad (patch) | |
tree | c3d5a849f1450b7df80e5c227c9575ce6fb30c90 /Toolchain/README.md | |
parent | 830b0e8f2dbaccdd2e0b0b953c6f75f6d1659a5f (diff) | |
download | serenity-29acb7fcf8993d96d7c776d6e60dbb7464d8ebad.zip |
LibCore: Add a Socket::set_idle() API that turns the notifiers on/off
When a socket's user doesn't need it to be active, but wants to keep it
open, the socket's notifiers should not be enabled to avoid hogging the
CPU with effectively useless notifications.
This API can be used to disable said notifiers until the user needs the
notifications.
Diffstat (limited to 'Toolchain/README.md')
0 files changed, 0 insertions, 0 deletions