diff options
author | bothner <bothner@138bc75d-0d04-0410-961f-82ee72b054a4> | 2001-05-22 06:47:48 +0000 |
---|---|---|
committer | bothner <bothner@138bc75d-0d04-0410-961f-82ee72b054a4> | 2001-05-22 06:47:48 +0000 |
commit | 98cf095aceed6a89d0524b8cfbcb11a5ee823c70 (patch) | |
tree | ecfc0fb5d915f5f6596ef061114d1b6b7ec5270a /libjava/no-threads.cc | |
parent | 4737d8efd8bdfccb3d0d41413aaf3933f25780ce (diff) | |
download | gcc-98cf095aceed6a89d0524b8cfbcb11a5ee823c70.tar.gz |
Implement invocation interface; don't create new thread for main.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@42428 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'libjava/no-threads.cc')
-rw-r--r-- | libjava/no-threads.cc | 14 |
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"); } |