We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b61b564 commit d771eb3Copy full SHA for d771eb3
app/src/main/cpp/lorie/renderer.c
@@ -518,7 +518,10 @@ static void drawCursor(float displayWidth, float displayHeight);
518
519
void rendererRedrawLocked(JNIEnv* env) {
520
EGLSync fence;
521
+ // The buffer will not be released until this function ends, but main thread can modify buffer list
522
+ pthread_mutex_lock(&stateLock);
523
LorieBuffer *buffer = LorieBufferList_findById(&buffers, state->rootWindowTextureID);
524
+ pthread_mutex_unlock(&stateLock);
525
if (!buffer) {
526
log("Buffer %llu not found", state->rootWindowTextureID);
527
usleep(2); // probably other thread did not push the buffer yet.
0 commit comments