📄 mtask.h
字号:
/* * @(#)mtask.h 1.14 06/10/25 * * Copyright 1990-2008 Sun Microsystems, Inc. All Rights Reserved. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER * * This program is free software; you can redistribute it and/or * modify it under the terms of the GNU General Public License version * 2 only, as published by the Free Software Foundation. * * This program is distributed in the hope that it will be useful, but * WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU * General Public License version 2 for more details (a copy is * included at /legal/license.txt). * * You should have received a copy of the GNU General Public License * version 2 along with this work; if not, write to the Free Software * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA * 02110-1301 USA * * Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa * Clara, CA 95054 or visit www.sun.com if you need additional * information or have any questions. * */#ifndef _POSIX_MTASK_H#define _POSIX_MTASK_H#ifdef CVM_MTASK#include "javavm/export/jni.h"/* * Notify the child process on the socket that will * link it to the mTASK instance */extern voidCVMmtaskServerCommSocket(JNIEnv* env, CVMInt32 commSocket);/* * Initialize child VM. The client ID is recorded by the * child process. */extern voidCVMmtaskReinitializeChildVM(JNIEnv* env, CVMInt32 clientId);/* * Record the port number which the server is listening to */extern voidCVMmtaskServerPort(JNIEnv* env, CVMInt32 serverPort);#if defined(CVM_HAVE_DEPRECATED) || defined(CVM_THREAD_SUSPENSION)extern voidCVMmtaskHandleSuspendChecker();#endif#ifdef CVM_TIMESTAMPINGextern jbooleanCVMmtaskTimeStampReinitialize(JNIEnv* env);extern jbooleanCVMmtaskTimeStampRecord(JNIEnv* env, const char* loc, int pos);#endiftypedef struct { jboolean initialized; int serverfd; /* Server */ int connfd; /* Connection */ FILE *connfp; /* Buffered connection */ JNIEnv *env; jboolean wasSourceCommand; jboolean isTestingMode; char* testingModeFilePrefix; /* Java method ID's to use for stopping and re-starting system threads */ jclass referenceClass; jclass cvmClass; jmethodID stopSystemThreadsID; jmethodID restartSystemThreadsID; jmethodID resetMainID;} ServerState;extern intMTASKserverInitialize(ServerState* state, CVMParsedSubOptions* serverOpts, JNIEnv* env, jclass cvmClass);extern intMTASKnextRequest(ServerState *state);extern voidMTASKserverSourceReset(ServerState *state);#endif#endif /* _POSIX_MTASK_H */
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -