diff options
author | Fabien Ninoles <fabien@tzone.org> | 2011-06-20 08:14:21 +0200 |
---|---|---|
committer | Martin Sustrik <sustrik@250bpm.com> | 2011-06-20 08:14:21 +0200 |
commit | 7572fee979a1cc2a874dd5621c89a0e849b65816 (patch) | |
tree | 20a4bc18ed480346d8e6b5fd3950a055233ce141 /foreign | |
parent | 8440de2b14876ecc6b39816528ef0793c6e34598 (diff) |
Optimise block/non-block switching in mailbox_t
For the platforms that don't support MSG_DONTWAIT the reader
socket in mailbox_t was kept in non-blocking state and flipped
to blocking state and back when blocking read was requested.
Now, the state is preserved between calls and flipped only
if different type of operation (block vs. non-block) is
requested.
Signed-off-by: Fabien Ninoles <fabien@tzone.org>
Signed-off-by: Martin Sustrik <sustrik@250bpm.com>
Diffstat (limited to 'foreign')
0 files changed, 0 insertions, 0 deletions