yanglimingcn commented on PR #2358: URL: https://github.com/apache/brpc/pull/2358#issuecomment-1790599380
> > int bthread_set_tagged_worker_startfn(void (*start_fn)(bthread_tag_t)); 我觉得这样的函数使用上有点受限,很多时候需要给这个startfn传递一个参数,去做一些thread local的初始化工作。 改成 int bthread_set_tagged_worker_startfn(void (*start_fn)(void *)) 你觉得可行吗?@wwbmmm > > 是指这样吗? > > ``` > int bthread_set_tagged_worker_startfn(void (*start_fn)(void *), void* arg) > ``` 这个问题忽略吧,我觉得保持现状吧,其实现在这样的接口能满足需求的。 -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: dev-unsubscr...@brpc.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscr...@brpc.apache.org For additional commands, e-mail: dev-h...@brpc.apache.org