Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

thread: func thrd_equal return value error under Windows #1202

Closed
jobo-zt opened this issue Oct 19, 2024 · 4 comments · Fixed by #1203
Closed

thread: func thrd_equal return value error under Windows #1202

jobo-zt opened this issue Oct 19, 2024 · 4 comments · Fixed by #1203

Comments

@jobo-zt
Copy link
Contributor

jobo-zt commented Oct 19, 2024

Discovered during testing。

thread 1
thrd_t *thrd= thrd_current();

thread 2
thrd_equal(thrd, thrd_current());

GetThreadId(thrd_current()) return ok. but GetThreadId(thrd) return err. thrd in thread 1
so fun thrd_equal return err.

@jobo-zt jobo-zt closed this as completed Oct 19, 2024
@jobo-zt
Copy link
Contributor Author

jobo-zt commented Oct 19, 2024

Reproduce the scene: baresip/restund#8

@sreimers
Copy link
Member

Can you try #1203

@jobo-zt
Copy link
Contributor Author

jobo-zt commented Oct 21, 2024

Ok, I will test it later.

@jobo-zt
Copy link
Contributor Author

jobo-zt commented Oct 21, 2024

The execution result meets expectations. OK

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants