Skip to content

Use semaphore instead of blocking while loop#167

Open
yasen5 wants to merge 1 commit into
mainfrom
semaphore-frame-fetcher-block
Open

Use semaphore instead of blocking while loop#167
yasen5 wants to merge 1 commit into
mainfrom
semaphore-frame-fetcher-block

Conversation

@yasen5
Copy link
Copy Markdown
Collaborator

@yasen5 yasen5 commented Apr 18, 2026

No description provided.

@yasen5
Copy link
Copy Markdown
Collaborator Author

yasen5 commented Apr 19, 2026

Tested on robot

Comment thread src/camera/uvc_camera.cc

void callback(uvc_frame_t* frame, void* ptr) {
auto ptr_ = static_cast<UVCCamera*>(ptr);
ptr_->mutex_.lock();
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can we use try_lock?

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.

2 participants