我正在使用 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/