diff options
author | Volker Lendecke <vl@samba.org> | 2013-12-30 11:26:52 +0100 |
---|---|---|
committer | Volker Lendecke <vl@samba.org> | 2014-01-21 08:10:41 +0100 |
commit | 5f3ccfc16b7c64d2de109ba26d92d22ae1010882 (patch) | |
tree | ff43659880bca36e4a0a33aef2a85bcc66a4abdd /lib/param/param_functions.c | |
parent | eee450fec2f7cb5f45c47162fd5b7c0717978598 (diff) | |
download | samba-5f3ccfc16b7c64d2de109ba26d92d22ae1010882.tar.gz samba-5f3ccfc16b7c64d2de109ba26d92d22ae1010882.tar.xz samba-5f3ccfc16b7c64d2de109ba26d92d22ae1010882.zip |
messaging3: Add messaging_read_send/recv
This is made to replace the msg_channel abstraction.
msg_channel was created to not miss any messages. For this, some
complex queueing was installed. This complexity has caused quite a
few problems in the past (see bug 10284 for example).
messaging_read_send/recv is able to achieve the same goal with a
lot less complexity. The messaging_read_send atomically installs
the reader into the messaging_context, we will not miss any messages
while this installed. messaging_send_recv will deinstall that
listener, but in the callback function you can directly call
messaging_read_send again without going through the tevent_loop_once.
As long as this is always made sure, no messages will be lost.
Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
Diffstat (limited to 'lib/param/param_functions.c')
0 files changed, 0 insertions, 0 deletions