[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH v5 6/7] io: Document thread-safety of qio_channel_shutdown
From: |
Lukas Straub |
Subject: |
[PATCH v5 6/7] io: Document thread-safety of qio_channel_shutdown |
Date: |
Tue, 23 Jun 2020 16:42:59 +0200 |
Migration and yank code assume that qio_channel_shutdown is thread
-safe. Document this after checking the code.
Signed-off-by: Lukas Straub <lukasstraub2@web.de>
---
include/io/channel.h | 2 ++
1 file changed, 2 insertions(+)
diff --git a/include/io/channel.h b/include/io/channel.h
index d4557f0930..6b8a2b87b8 100644
--- a/include/io/channel.h
+++ b/include/io/channel.h
@@ -516,6 +516,8 @@ int qio_channel_close(QIOChannel *ioc,
* QIO_CHANNEL_FEATURE_SHUTDOWN prior to calling
* this method.
*
+ * This function is thread-safe.
+ *
* Returns: 0 on success, -1 on error
*/
int qio_channel_shutdown(QIOChannel *ioc,
--
2.20.1
pgpO4b_khBez8.pgp
Description: OpenPGP digital signature
- [PATCH v5 0/7] Introduce 'yank' oob qmp command to recover from hanging qemu, Lukas Straub, 2020/06/23
- [PATCH v5 1/7] Introduce yank feature, Lukas Straub, 2020/06/23
- [PATCH v5 2/7] block/nbd.c: Add yank feature, Lukas Straub, 2020/06/23
- [PATCH v5 3/7] chardev/char-socket.c: Add yank feature, Lukas Straub, 2020/06/23
- [PATCH v5 4/7] migration: Add yank feature, Lukas Straub, 2020/06/23
- [PATCH v5 5/7] io/channel-tls.c: make qio_channel_tls_shutdown thread-safe, Lukas Straub, 2020/06/23
- [PATCH v5 6/7] io: Document thread-safety of qio_channel_shutdown,
Lukas Straub <=
- [PATCH v5 7/7] MAINTAINERS: Add myself as maintainer for yank feature, Lukas Straub, 2020/06/23
- Re: [PATCH v5 0/7] Introduce 'yank' oob qmp command to recover from hanging qemu, Lukas Straub, 2020/06/24