notaz.gp2x.de
/
pcsx_rearmed.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Merge pull request #454 from justinweiss/handle-oob-cd-reads
[pcsx_rearmed.git]
/
deps
/
lightrec
/
recompiler.c
diff --git
a/deps/lightrec/recompiler.c
b/deps/lightrec/recompiler.c
index
e60889c
..
634d3d0
100644
(file)
--- a/
deps/lightrec/recompiler.c
+++ b/
deps/lightrec/recompiler.c
@@
-76,7
+76,7
@@
static void * lightrec_recompiler_thd(void *d)
pthread_mutex_lock(&rec->mutex);
pthread_mutex_lock(&rec->mutex);
-
do
{
+
while (!rec->stop)
{
do {
pthread_cond_wait(&rec->cond, &rec->mutex);
do {
pthread_cond_wait(&rec->cond, &rec->mutex);
@@
-86,7
+86,7
@@
static void * lightrec_recompiler_thd(void *d)
} while (slist_empty(&rec->slist));
lightrec_compile_list(rec);
} while (slist_empty(&rec->slist));
lightrec_compile_list(rec);
- }
while (!rec->stop);
+ }
out_unlock:
pthread_mutex_unlock(&rec->mutex);
out_unlock:
pthread_mutex_unlock(&rec->mutex);