Skip to content
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

pthread_setname_np 函数的引入导致在Mac上编译失败 #81

Closed
hnwyllmm opened this issue Sep 19, 2022 · 4 comments
Closed

pthread_setname_np 函数的引入导致在Mac上编译失败 #81

hnwyllmm opened this issue Sep 19, 2022 · 4 comments
Labels
bug Something isn't working

Comments

@hnwyllmm
Copy link
Collaborator

image

image

请问这里是有bug吗?我是Mac环境,拉取main分支最新的编译出错了。

-- from @Joenhle

此BUG由 #79 引入

@hnwyllmm hnwyllmm added the bug Something isn't working label Sep 19, 2022
@XiongKezhi
Copy link

XiongKezhi commented Sep 19, 2022

同遇到这个问题,似乎就是macos的pthread这里api的兼容问题,macos不能修改除自身以外的thread的名字。注释掉后能在macos成功编译和运行。参考:https://opensource.apple.com/source/libpthread/libpthread-301.30.1/pthread/pthread.h.auto.html

@FrankXMX
Copy link
Contributor

图片

先暂时只支持linux系统吧,下个PR修改。

@FrankXMX
Copy link
Contributor

@hnwyllmm
Copy link
Collaborator Author

fixed by #80

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants