⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 thread.c

📁 kaffe Java 解释器语言,源码,Java的子集系统,开放源代码
💻 C
字号:
/* * java.lang.Thread.c * * Copyright (c) 1996, 1997 *	Transvirtual Technologies, Inc.  All rights reserved. * * See the file "license.terms" for information on usage and redistribution  * of this file.  */#include "config.h"#include "config-std.h"#include "../../../kaffe/kaffevm/gtypes.h"#include "java_lang_Thread.h"#include "../../../kaffe/kaffevm/thread.h"#include "../../../kaffe/kaffevm/locks.h"#include "../../../kaffe/kaffevm/support.h"struct Hjava_lang_Thread*java_lang_Thread_currentThread(void){	return (getCurrentThread());}/* * Yield processor to another thread of the same priority. */voidjava_lang_Thread_yield0(void){	yieldThread();}/* * Start this thread running. */voidjava_lang_Thread_start0(struct Hjava_lang_Thread* this){	startThread(this);}/* * Change thread priority. */voidjava_lang_Thread_setPriority0(struct Hjava_lang_Thread* this, jint prio){	setPriorityThread(this, prio);}/* * Stop a thread in its tracks. */voidjava_lang_Thread_stop0(struct Hjava_lang_Thread* this, struct Hjava_lang_Object* obj){	stopThread(this, obj);}voidjava_lang_Thread_interrupt0(struct Hjava_lang_Thread* this){	interruptThread(this);}voidjava_lang_Thread_finalize0(struct Hjava_lang_Thread* this){	finalizeThread(this);}/* * Destroy a thread (it had better be myself!!) */voidjava_lang_Thread_destroy0(struct Hjava_lang_Thread* this){	exitThread();}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -