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

Compilation error when configuring the library for multithreading support #1172

Closed
georgekjolly opened this issue Feb 1, 2018 · 1 comment

Comments

@georgekjolly
Copy link

georgekjolly commented Feb 1, 2018

Compilation error when configuring the library for multithreading support with flag
-DLWS_MAX_SMP

Branch(v2.4-stable)

Below code snippet in context.c giving a compilation error.

#if LWS_MAX_SMP > 1
pthread_mutex_destroy(&context->lock, NULL);
#endif

Issue is resolved when I changed pthread_mutex_destroy(&context->lock, NULL) to pthread_mutex_destroy(&context->lock);

Thanks
George

lws-team added a commit that referenced this issue Feb 6, 2018
@lws-team
Copy link
Member

lws-team commented Feb 6, 2018

Thanks... it was already fixed on master. I pushed a patch on v2.4-stable.

@lws-team lws-team closed this as completed Feb 6, 2018
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

No branches or pull requests

2 participants