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

cgen: cleanup generated thread wait C codes #12048

Merged
merged 1 commit into from Oct 3, 2021

Conversation

yuyi98
Copy link
Member

@yuyi98 yuyi98 commented Oct 3, 2021

This PR cleanup generated thread wait C codes.

  • Remove the extra return; at the end of the function.
void __v_thread_wait(__v_thread thread) {
	u32 stat = WaitForSingleObject(thread, INFINITE);
	if (stat != 0) { _v_panic(_SLIT("unable to join thread")); }
	CloseHandle(thread);
	return;
}

@medvednikov medvednikov merged commit 10caf4a into vlang:master Oct 3, 2021
@yuyi98 yuyi98 deleted the cleanup_thread_wait branch October 6, 2021 04:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants