aboutsummaryrefslogtreecommitdiff
path: root/libjava/no-threads.cc
diff options
context:
space:
mode:
authorPer Bothner <per@bothner.com>2001-05-21 23:47:48 -0700
committerPer Bothner <bothner@gcc.gnu.org>2001-05-21 23:47:48 -0700
commitc93d7fae7b9825449c023d42eb40641c0ad80be2 (patch)
treeecfc0fb5d915f5f6596ef061114d1b6b7ec5270a /libjava/no-threads.cc
parentb4fbaca7cb5c6ff5fb5e24e554d510257cb488eb (diff)
downloadgcc-c93d7fae7b9825449c023d42eb40641c0ad80be2.zip
gcc-c93d7fae7b9825449c023d42eb40641c0ad80be2.tar.gz
gcc-c93d7fae7b9825449c023d42eb40641c0ad80be2.tar.bz2
Implement invocation interface; don't create new thread for main.
From-SVN: r42428
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 d28891a..fcfa713 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");
}