00001 #ifndef _included_java_lang_Thread_h_ 00002 #define _included_java_lang_Thread_h_ 00003 /*! 00004 * @file java_lang_Thread.h 00005 * 00006 * @brief Sample subset of @c @b java.lang.Thread native 00007 * methods 00008 * 00009 * The full implementation of this header file should contain each and 00010 * every native method that is declared by the implmentation. 00011 * 00012 * 00013 * @section Control 00014 * 00015 * \$URL: https://svn.apache.org/path/name/java_lang_Thread.h $ \$Id: java_lang_Thread.h 0 09/28/2005 dlydick $ 00016 * 00017 * Copyright 2005 The Apache Software Foundation 00018 * or its licensors, as applicable. 00019 * 00020 * Licensed under the Apache License, Version 2.0 ("the License"); 00021 * you may not use this file except in compliance with the License. 00022 * You may obtain a copy of the License at 00023 * 00024 * http://www.apache.org/licenses/LICENSE-2.0 00025 * 00026 * Unless required by applicable law or agreed to in writing, 00027 * software distributed under the License is distributed on an 00028 * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, 00029 * either express or implied. 00030 * 00031 * See the License for the specific language governing permissions 00032 * and limitations under the License. 00033 * 00034 * @version \$LastChangedRevision: 0 $ 00035 * 00036 * @date \$LastChangedDate: 09/28/2005 $ 00037 * 00038 * @author \$LastChangedBy: dlydick $ 00039 * Original code contributed by Daniel Lydick on 09/28/2005. 00040 * 00041 * @section Reference 00042 * 00043 */ 00044 00045 #include <jni.h> 00046 00047 #ifdef __cplusplus 00048 extern "C" { 00049 #endif 00050 00051 /*! 00052 * @brief Native definition 00053 * for @c @b java.lang.Thread.registerNatives() 00054 * 00055 * @verbatim 00056 Class: java_lang_Thread 00057 Method: registerNatives 00058 Signature: ()V 00059 @endverbatim 00060 * 00061 */ 00062 JNIEXPORT void JNICALL 00063 Java_java_lang_Thread_registerNatives(JNIEnv *, jclass); 00064 00065 00066 /*! 00067 * @brief Native definition 00068 * for @c @b java.lang.Thread.unregisterNatives() 00069 * 00070 * @verbatim 00071 Class: java_lang_Thread 00072 Method: unregisterNatives 00073 Signature: ()V 00074 @endverbatim 00075 * 00076 */ 00077 JNIEXPORT void JNICALL 00078 Java_java_lang_Thread_unregisterNatives(JNIEnv *, jclass); 00079 00080 00081 /*! 00082 * @brief Native definition 00083 * for @c @b java.lang.Thread.currentThread() 00084 * 00085 * @verbatim 00086 Class: java_lang_Thread 00087 Method: currentThread 00088 Signature: ()Ljava/lang/Thread; 00089 @endverbatim 00090 * 00091 */ 00092 JNIEXPORT jobject JNICALL 00093 Java_java_lang_Thread_currentThread(JNIEnv *, jclass); 00094 00095 00096 /*! 00097 * @brief Native definition 00098 * for @c @b java.lang.Thread.yield() 00099 * 00100 * @verbatim 00101 Class: java_lang_Thread 00102 Method: yield 00103 Signature: ()V 00104 @endverbatim 00105 * 00106 */ 00107 JNIEXPORT void JNICALL 00108 Java_java_lang_Thread_yield(JNIEnv *, jclass); 00109 00110 00111 /*! 00112 * @brief Native definition 00113 * for @c @b java.lang.Thread.interrupt() 00114 * 00115 * @verbatim 00116 Class: java_lang_Thread 00117 Method: interrupt 00118 Signature: ()V 00119 @endverbatim 00120 * 00121 */ 00122 JNIEXPORT void JNICALL 00123 Java_java_lang_Thread_interrupt(JNIEnv *, jobject); 00124 00125 00126 /*! 00127 * @brief Native definition 00128 * for @c @b java.lang.Thread.interrupted() 00129 * 00130 * @verbatim 00131 Class: java_lang_Thread 00132 Method: interrupted 00133 Signature: ()Z 00134 @endverbatim 00135 * 00136 */ 00137 JNIEXPORT jboolean JNICALL 00138 Java_java_lang_Thread_interrupted(JNIEnv *, jclass); 00139 00140 00141 /*! 00142 * @brief Native definition 00143 * for @c @b java.lang.Thread.isInterrupted() 00144 * 00145 * @verbatim 00146 Class: java_lang_Thread 00147 Method: isInterrupted 00148 Signature: ()Z 00149 @endverbatim 00150 * 00151 */ 00152 JNIEXPORT jboolean JNICALL 00153 Java_java_lang_Thread_isInterrupted(JNIEnv *, jobject); 00154 00155 00156 /*! 00157 * @brief Native definition 00158 * for @c @b java.lang.Thread.isInterrupted() 00159 * 00160 * @verbatim 00161 Class: java_lang_Thread 00162 Method: sleep 00163 Signature: (J)V 00164 @endverbatim 00165 * 00166 */ 00167 JNIEXPORT void JNICALL 00168 Java_java_lang_Thread_sleep__J(JNIEnv *, jclass, jlong); 00169 00170 00171 /*! 00172 * @brief Native definition 00173 * for @c @b java.lang.Thread.sleep(long, int) 00174 * 00175 * @verbatim 00176 Class: java_lang_Thread 00177 Method: sleep 00178 Signature: (JI)V 00179 @endverbatim 00180 * 00181 */ 00182 JNIEXPORT void JNICALL 00183 Java_java_lang_Thread_sleep__JI(JNIEnv *, jclass, jlong, jint); 00184 00185 00186 /*! 00187 * @brief Native definition 00188 * for @c @b java.lang.Thread.join() 00189 * 00190 * @verbatim 00191 Class: java_lang_Thread 00192 Method: join 00193 Signature: ()V 00194 @endverbatim 00195 * 00196 */ 00197 JNIEXPORT void JNICALL Java_java_lang_Thread_join(JNIEnv *, jobject); 00198 00199 00200 /*! 00201 * @brief Native definition 00202 * for @c @b java.lang.Thread.join(long) 00203 * 00204 * @verbatim 00205 Class: java_lang_Thread 00206 Method: join 00207 Signature: (J)V 00208 @endverbatim 00209 * 00210 */ 00211 JNIEXPORT void JNICALL 00212 Java_java_lang_Thread_join__J(JNIEnv *, jobject, jlong); 00213 00214 00215 /*! 00216 * @brief Native definition 00217 * for @c @b java.lang.Thread.join() 00218 * 00219 * @verbatim 00220 Class: java_lang_Thread 00221 Method: join 00222 Signature: (JI)V 00223 @endverbatim 00224 * 00225 */ 00226 JNIEXPORT void JNICALL 00227 Java_java_lang_Thread_join__JI(JNIEnv *, jobject, jlong, jint); 00228 00229 00230 /*! 00231 * @brief Native definition 00232 * for @c @b java.lang.Thread.isAlive() 00233 * 00234 * @verbatim 00235 Class: java_lang_Thread 00236 Method: isAlive 00237 Signature: ()Z 00238 @endverbatim 00239 * 00240 */ 00241 JNIEXPORT jboolean JNICALL 00242 Java_java_lang_Thread_isAlive(JNIEnv *, jobject); 00243 00244 00245 /*! 00246 * @brief Native definition 00247 * for @c @b java.lang.Thread.start() 00248 * 00249 * @verbatim 00250 Class: java_lang_Thread 00251 Method: start 00252 Signature: ()V 00253 @endverbatim 00254 * 00255 */ 00256 JNIEXPORT void JNICALL Java_java_lang_Thread_start(JNIEnv *, jobject); 00257 00258 00259 /*! 00260 * @brief Native definition 00261 * for @c @b java.lang.Thread.countStackFrames() 00262 * 00263 * @verbatim 00264 Class: java_lang_Thread 00265 Method: countStackFrames 00266 Signature: ()I 00267 @endverbatim 00268 * 00269 * @deprecated <b>CAVEAT EMPTOR:</b> This method has been deprecated 00270 * in the JDK library API 00271 * documentation. 00272 * 00273 */ 00274 JNIEXPORT jint JNICALL 00275 Java_java_lang_Thread_countStackFrames(JNIEnv *, jobject); 00276 00277 00278 /*! 00279 * @brief Native definition 00280 * for @c @b java.lang.Thread.holdsLock() 00281 * 00282 * @verbatim 00283 Class: java_lang_Thread 00284 Method: holdsLock 00285 Signature: (Ljava/lang/Object;)Z 00286 @endverbatim 00287 * 00288 */ 00289 JNIEXPORT jboolean JNICALL 00290 Java_java_lang_Thread_holdsLock(JNIEnv *, jclass, jobject); 00291 00292 00293 /*! 00294 * @brief Native definition 00295 * for @c @b java.lang.Thread.setPriority() 00296 * 00297 * @verbatim 00298 Class: java_lang_Thread 00299 Method: setPriority 00300 Signature: (I)V 00301 @endverbatim 00302 * 00303 */ 00304 JNIEXPORT void JNICALL 00305 Java_java_lang_Thread_setPriority(JNIEnv *, jobject, jint); 00306 00307 00308 /*! 00309 * @brief Native definition 00310 * for @c @b java.lang.Thread.getPriority() 00311 * 00312 * @verbatim 00313 Class: java_lang_Thread 00314 Method: getPriority 00315 Signature: ()I 00316 @endverbatim 00317 * 00318 */ 00319 JNIEXPORT jint JNICALL 00320 Java_java_lang_Thread_getPriority(JNIEnv *, jobject); 00321 00322 00323 /*! 00324 * @brief Native definition 00325 * for @c @b java.lang.Thread.destroy() 00326 * 00327 * @verbatim 00328 Class: java_lang_Thread 00329 Method: destroy 00330 Signature: ()V 00331 @endverbatim 00332 * 00333 */ 00334 JNIEXPORT void JNICALL 00335 Java_java_lang_Thread_destroy(JNIEnv *, jobject); 00336 00337 00338 /*! 00339 * @brief Native definition 00340 * for @c @b java.lang.Thread.checkAccess() 00341 * 00342 * @verbatim 00343 Class: java_lang_Thread 00344 Method: checkAccess 00345 Signature: ()V 00346 @endverbatim 00347 * 00348 */ 00349 JNIEXPORT void JNICALL 00350 Java_java_lang_Thread_checkAccess(JNIEnv *, jobject); 00351 00352 00353 /*! 00354 * @brief Native definition 00355 * for @c @b java.lang.Thread.setDaemon() 00356 * 00357 * @verbatim 00358 Class: java_lang_Thread 00359 Method: setDaemon 00360 Signature: (Z)V 00361 @endverbatim 00362 * 00363 */ 00364 JNIEXPORT void JNICALL 00365 Java_java_lang_Thread_setDaemon(JNIEnv *, jobject, jboolean); 00366 00367 00368 /*! 00369 * @brief Native definition 00370 * for @c @b java.lang.Thread.isDaemon() 00371 * 00372 * @verbatim 00373 Class: java_lang_Thread 00374 Method: isDaemon 00375 Signature: ()Z 00376 @endverbatim 00377 * 00378 */ 00379 JNIEXPORT jboolean JNICALL 00380 Java_java_lang_Thread_isDaemon(JNIEnv *, jobject); 00381 00382 00383 /*! 00384 * @brief Native definition 00385 * for @c @b java.lang.Thread.stop() 00386 * 00387 * @verbatim 00388 Class: java_lang_Thread 00389 Method: stop 00390 Signature: ()V 00391 @endverbatim 00392 * 00393 * @deprecated <b>CAVEAT EMPTOR:</b> This method has been deprecated 00394 * in the JDK library API 00395 * documentation. 00396 * 00397 */ 00398 JNIEXPORT void JNICALL 00399 Java_java_lang_Thread_stop(JNIEnv *, jobject); 00400 00401 00402 /*! 00403 * @brief Native definition 00404 * for @c @b java.lang.Thread.suspend() 00405 * 00406 * @verbatim 00407 Class: java_lang_Thread 00408 Method: resume 00409 Signature: ()V 00410 @endverbatim 00411 * 00412 * @deprecated <b>CAVEAT EMPTOR:</b> This method has been deprecated 00413 * in the JDK library API 00414 * documentation. 00415 * 00416 */ 00417 JNIEXPORT void JNICALL 00418 Java_java_lang_Thread_resume(JNIEnv *, jobject); 00419 00420 00421 /*! 00422 * @brief Native definition 00423 * for @c @b java.lang.Thread.suspend() 00424 * 00425 * @verbatim 00426 Class: java_lang_Thread 00427 Method: suspend 00428 Signature: ()V 00429 @endverbatim 00430 * 00431 * @deprecated <b>CAVEAT EMPTOR:</b> This method has been deprecated 00432 * in the JDK library API 00433 * documentation. 00434 * 00435 */ 00436 JNIEXPORT void JNICALL 00437 Java_java_lang_Thread_suspend(JNIEnv *, jobject); 00438 00439 00440 #ifdef __cplusplus 00441 } 00442 #endif 00443 00444 #endif /* _included_java_lang_Thread_h_ */ 00445 00446 /* EOF */ 00447