summaryrefslogtreecommitdiff
path: root/libjava/no-threads.cc
diff options
context:
space:
mode:
Diffstat (limited to 'libjava/no-threads.cc')
-rw-r--r--libjava/no-threads.cc14
1 files changed, 10 insertions, 4 deletions
diff --git a/libjava/no-threads.cc b/libjava/no-threads.cc
index d28891a5b44..fcfa713e45e 100644
--- a/libjava/no-threads.cc
+++ b/libjava/no-threads.cc
@@ -16,14 +16,20 @@ details. */
java::lang::Thread *_Jv_OnlyThread = NULL;
-void
-_Jv_ThreadStart (java::lang::Thread *thread, _Jv_Thread_t *,
- _Jv_ThreadStartFunc *meth)
+_Jv_Thread_t *
+_Jv_ThreadInitData (java::lang::Thread * thread)
{
// Don't use JvAssert, since we want this to fail even when compiled
// without assertions.
if (_Jv_OnlyThread)
JvFail ("only thread already running");
_Jv_OnlyThread = thread;
- (*meth) (thread);
+ return NULL;
+}
+
+void
+_Jv_ThreadStart (java::lang::Thread *thread, _Jv_Thread_t *,
+ _Jv_ThreadStartFunc *meth)
+{
+ JvFail ("Thread.start called but threads not available");
}