fix: Fix Frame Processor SIGSEV crash in VisionCameraScheduler::trigger
by locking mutex in dispatchAsync
(#2591)
Add missing lock.
This commit is contained in:
parent
7ac6f4d008
commit
55992bb954
@ -15,6 +15,7 @@ TSelf JVisionCameraScheduler::initHybrid(jni::alias_ref<jhybridobject> jThis) {
|
||||
}
|
||||
|
||||
void JVisionCameraScheduler::dispatchAsync(const std::function<void()>& job) {
|
||||
std::unique_lock<std::mutex> lock(_mutex);
|
||||
// 1. add job to queue
|
||||
_jobs.push(job);
|
||||
scheduleTrigger();
|
||||
|
Loading…
Reference in New Issue
Block a user