aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/os
diff options
context:
space:
mode:
authorThiago de Arruda <tpadilha84@gmail.com>2015-04-03 08:03:35 -0300
committerThiago de Arruda <tpadilha84@gmail.com>2015-04-03 08:03:50 -0300
commita5561fe610ae218a2ddae4e014e623c365fab0dd (patch)
tree4639b0a2622f956a5f37917a3a4457fc0f87859a /src/nvim/os
parentab026375923feb2e98d0d7bb3c10ded6aaf07ff0 (diff)
parent12b084b62109e6dc43792fc4af5accb21b469d05 (diff)
downloadrneovim-a5561fe610ae218a2ddae4e014e623c365fab0dd.tar.gz
rneovim-a5561fe610ae218a2ddae4e014e623c365fab0dd.tar.bz2
rneovim-a5561fe610ae218a2ddae4e014e623c365fab0dd.zip
Merge PR #1978 'Prevent too early sending of delayed notifications.'
Diffstat (limited to 'src/nvim/os')
-rw-r--r--src/nvim/os/wstream.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/nvim/os/wstream.c b/src/nvim/os/wstream.c
index 90d4ebeec8..13c6c0429f 100644
--- a/src/nvim/os/wstream.c
+++ b/src/nvim/os/wstream.c
@@ -181,7 +181,7 @@ bool wstream_write(WStream *wstream, WBuffer *buffer)
return true;
err:
- release_wbuffer(buffer);
+ wstream_release_wbuffer(buffer);
return false;
}
@@ -217,7 +217,7 @@ static void write_cb(uv_write_t *req, int status)
data->wstream->curmem -= data->buffer->size;
- release_wbuffer(data->buffer);
+ wstream_release_wbuffer(data->buffer);
if (data->wstream->cb) {
data->wstream->cb(data->wstream,
@@ -239,7 +239,7 @@ static void write_cb(uv_write_t *req, int status)
kmp_free(WRequestPool, wrequest_pool, data);
}
-static void release_wbuffer(WBuffer *buffer)
+void wstream_release_wbuffer(WBuffer *buffer)
{
if (!--buffer->refcount) {
if (buffer->cb) {