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

An improper locking bug(e.g., deadlock) on the lock runloop_lock #641

Closed
ycaibb opened this issue Sep 5, 2021 · 0 comments
Closed

An improper locking bug(e.g., deadlock) on the lock runloop_lock #641

ycaibb opened this issue Sep 5, 2021 · 0 comments

Comments

@ycaibb
Copy link

ycaibb commented Sep 5, 2021

Hi, developers, thank you for your checking. It seems the lock runloop_lock is not released correctly when ret != 0 in the function setup_kinect?

pthread_mutex_lock(&runloop_lock);
int thread_running_prev = thread_running;
if (!thread_running) {
int ret = init_thread();
if (ret != 0) return ret;

@piedar piedar closed this as completed in 9e19c16 Sep 24, 2021
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

1 participant