projects
/
cacao.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
make sure threadobject->tid has always a non-zero value
[cacao.git]
/
threads
/
nativethread.c
diff --git
a/threads/nativethread.c
b/threads/nativethread.c
index 48e98a715a38f4a8061edaf10b983d5fc6eeb1da..897f821e0856dbb78d5ef80fe3d2a7b0adfe1667 100644
(file)
--- a/
threads/nativethread.c
+++ b/
threads/nativethread.c
@@
-593,6
+593,7
@@
static void *threadstartup(void *t)
sem_post(psem);
setPriority(info->tid, thread->o.thread->priority);
+ sched_yield();
/* Find the run()V method and call it */
method = class_resolveclassmethod(thread->o.header.vftbl->class,