]> gcc.gnu.org Git - gcc.git/blame - libjava/no-threads.cc
2003-10-29 Michael Koch <konqueror@gmx.de>
[gcc.git] / libjava / no-threads.cc
CommitLineData
ee9dd372
TT
1// no-thread.cc - Implementation of `no threads' threads.
2
eeedeb5a 3/* Copyright (C) 1998, 1999, 2001 Free Software Foundation
ee9dd372
TT
4
5 This file is part of libgcj.
6
7This software is copyrighted work licensed under the terms of the
8Libgcj License. Please consult the file "LIBGCJ_LICENSE" for
9details. */
10
11#include <config.h>
12
27e934d8 13#include <gcj/cni.h>
ee9dd372
TT
14#include <jvm.h>
15#include <java/lang/Thread.h>
eeedeb5a 16#include <java/lang/InternalError.h>
ee9dd372
TT
17
18java::lang::Thread *_Jv_OnlyThread = NULL;
19
c93d7fae 20_Jv_Thread_t *
eeedeb5a 21_Jv_ThreadInitData (java::lang::Thread *thread)
ee9dd372 22{
eeedeb5a
TT
23 // It is ok to create a new Thread object, as long as it isn't started.
24 if (_Jv_OnlyThread == NULL)
25 _Jv_OnlyThread = thread;
c93d7fae
PB
26 return NULL;
27}
28
29void
01c62aea 30_Jv_ThreadStart (java::lang::Thread *, _Jv_Thread_t *, _Jv_ThreadStartFunc *)
c93d7fae 31{
eeedeb5a 32 throw new java::lang::InternalError (JvNewStringLatin1 ("Thread.start called but threads not available"));
ee9dd372 33}
This page took 0.326877 seconds and 5 git commands to generate.