有什么区别:
thread_envs[i] = soap_copy(&env);
和
thread_envs[i] = soap_new();
我们应该使用其中之一还是两者都使用?
最佳答案
来自文档:
结构soap *soap_new()
Allocates, initializes, and returns a pointer to a runtime environment
结构体soap *soap_copy(结构体soap *soap)
Allocates a new runtime environment and copies contents of the environment such that the new environment does not share any data with the original environment
关于c++ - soap_new() 和soap_copy() 有什么区别?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/1958618/