-
Notifications
You must be signed in to change notification settings - Fork 385
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
client.Echo start multi thread,how can I start only one thread? #377
Comments
这个是workflow的全局配置,在workflow的global settings里,把 poller_threads和handler_threads都改成1 int main()
{
struct WFGlobalSettings settings = GLOBAL_SETTINGS_DEFAULT;
settings.poller_threads = 1;
settings.handler_threads = 1;
WORKFLOW_library_init(&settings);
...
} |
谢谢,但是我按照上面的在代码里面修改,还是有三个线程,还有其他地方需要修改么? |
@ouclbc hi,你是说进程整体有3个线程么?是不是有一个是你的主线程? |
不是主线程,我开了一个线程,然后调用获取接口时查看有三个。 |
你开了一个,然后poller和handler各一个?所以是三? |
了解了 |
No description provided.
The text was updated successfully, but these errors were encountered: