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

标签 c++ multithreading visual-studio-2008 thread-safety gsoap

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

相关文章:

c# - 为控件快捷方式创建事件方法 - Visual Studio

c++ - 使用 STL 对两个集合的并集元素进行计数

c++ - 我的主 C++ 文件中的文本(在尚未执行的代码中)如何显示在字符串中?

c++ - CMake:include_directories 不从子目录传播

c - Linux 中进程/线程的大小

c++ - 捕获不可见线程的未处理异常

java - Executors.newFixedThreadPool - 问题

c++ - 二进制字符串到整数与 'atoi()'

sql - 在SQL Server 2008中更改存储过程的名称

database - 看不到我已经安装了 Visual Studio Team System 2008 Database Edition Power Tools 但看不到 Checksum Unit Tests