]> gcc.gnu.org Git - gcc.git/blame - libjava/no-threads.cc
* extend.texi: Update for CPP.
[gcc.git] / libjava / no-threads.cc
CommitLineData
ee9dd372
TT
1// no-thread.cc - Implementation of `no threads' threads.
2
2ba5f774 3/* Copyright (C) 1998, 1999 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>
16
17java::lang::Thread *_Jv_OnlyThread = NULL;
18
19void
20_Jv_ThreadStart (java::lang::Thread *thread, _Jv_Thread_t *,
21 _Jv_ThreadStartFunc *meth)
22{
8cb9ab4b
TT
23 // Don't use JvAssert, since we want this to fail even when compiled
24 // without assertions.
25 if (_Jv_OnlyThread)
26 JvFail ("only thread already running");
ee9dd372
TT
27 _Jv_OnlyThread = thread;
28 (*meth) (thread);
29}
This page took 0.128398 seconds and 5 git commands to generate.