即使不使用多线程处理,也要预先初始化xerces - C+ +以避免多次调用这个函数,然后在应用程序结束时将其终止。
Even if you don't use multithreading, initialize Xerces-C + + up front to avoid multiple calls to this function and then terminate when your application terminates.
如果它们是可接合的线程,且您没有调用pthread_join来联接它们,那么在线程终止后,每个产生的线程都将泄漏大量的内存(至少每堆栈10 MB)。
If they are joinable threads and you haven't called the pthread_join to join them, each produced thread will leak a sizeable amount of memory (at least 10mb per stack) after its termination.
注意:bot只在启用时调用线程(记住,每个插件都是一个线程);在线程终止之后,只有在重新调用bot时才会重启线程。
NOTE: the bot invokes threads (remember that each plug-in is a thread) only when it is started; after a thread terminates it is not restarted until the bot is invoked again.
应用推荐