gpt4 book ai didi

c++ - gsoap 作为 soap 客户端是线程安全的吗?

转载 作者:塔克拉玛干 更新时间:2023-11-03 00:41:40 28 4
gpt4 key购买 nike

我正在使用 gsoap 2.8 以连接到 WCF 服务(我的应用程序是客户端)。

它是线程安全的吗?我应该定义一些预编译的定义吗?

谢谢,

马坦

最佳答案

虽然我只在单个线程中使用了 gsoap,但我在 2.8.1 的文档中找到了它

从 gSoap 文档中找到 here

A runtime context can be reused as many times as necessary for client-side remote calls and does not need to be reinitialized in doing so. A new context is required for each new thread to guarantee exclusive access to runtime context by threads. Also the use of any client calls within an active service method requires a new context.

关于c++ - gsoap 作为 soap 客户端是线程安全的吗?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/5144490/

28 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com