From c9d0ca49eb3e1624dd8f1b08cc1d69b4d609f7bc Mon Sep 17 00:00:00 2001 From: Philipp Moritz Date: Thu, 27 Oct 2016 16:30:29 -0700 Subject: [PATCH] add documentation --- src/plasma/plasma_store.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/plasma/plasma_store.c b/src/plasma/plasma_store.c index c94e927f0..cfcbbcfaa 100644 --- a/src/plasma/plasma_store.c +++ b/src/plasma/plasma_store.c @@ -364,7 +364,9 @@ void send_notifications(event_loop *loop, "The socket's send buffer is full, so we are caching this " "notification and will send it later."); /* Add a callback to the event loop to send queued notifications whenever - * there is room in the socket's send buffer. */ + * there is room in the socket's send buffer. Callbacks can be added + * more than once here and will be overwritten. The callback is removed + * at the end of the method. */ event_loop_add_file(plasma_state->loop, client_sock, EVENT_LOOP_WRITE, send_notifications, plasma_state); break;