mirror of
https://git.pwmt.org/pwmt/zathura.git
synced 2024-12-29 13:56:00 +01:00
Initialize lock before creating the render thread
This commit is contained in:
parent
a5bf154dfa
commit
1806b04786
1 changed files with 6 additions and 6 deletions
12
render.c
12
render.c
|
@ -51,12 +51,6 @@ render_init(zathura_t* zathura)
|
||||||
goto error_free;
|
goto error_free;
|
||||||
}
|
}
|
||||||
|
|
||||||
render_thread->thread = g_thread_create(render_job, render_thread, TRUE, NULL);
|
|
||||||
|
|
||||||
if (!render_thread->thread) {
|
|
||||||
goto error_free;
|
|
||||||
}
|
|
||||||
|
|
||||||
render_thread->cond = g_cond_new();
|
render_thread->cond = g_cond_new();
|
||||||
|
|
||||||
if (!render_thread->cond) {
|
if (!render_thread->cond) {
|
||||||
|
@ -69,6 +63,12 @@ render_init(zathura_t* zathura)
|
||||||
goto error_free;
|
goto error_free;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
render_thread->thread = g_thread_create(render_job, render_thread, TRUE, NULL);
|
||||||
|
|
||||||
|
if (!render_thread->thread) {
|
||||||
|
goto error_free;
|
||||||
|
}
|
||||||
|
|
||||||
return render_thread;
|
return render_thread;
|
||||||
|
|
||||||
error_free:
|
error_free:
|
||||||
|
|
Loading…
Reference in a new issue