projects
/
cacao.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
29005bd
)
make sure threadobject->tid has always a non-zero value
author
motse
<none@none>
Sat, 30 Oct 2004 11:26:00 +0000
(11:26 +0000)
committer
motse
<none@none>
Sat, 30 Oct 2004 11:26:00 +0000
(11:26 +0000)
src/threads/native/threads.c
patch
|
blob
|
history
threads/nativethread.c
patch
|
blob
|
history
diff --git
a/src/threads/native/threads.c
b/src/threads/native/threads.c
index 48e98a715a38f4a8061edaf10b983d5fc6eeb1da..897f821e0856dbb78d5ef80fe3d2a7b0adfe1667 100644
(file)
--- a/
src/threads/native/threads.c
+++ b/
src/threads/native/threads.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,
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,