home *** CD-ROM | disk | FTP | other *** search
/ Chip 1997 October / Chip_1997-10_cd.bin / tema / sybase / powerj / java.z / java_lang_Thread.h < prev    next >
C/C++ Source or Header  |  1996-05-03  |  2KB  |  49 lines

  1. /* DO NOT EDIT THIS FILE - it is machine generated */
  2. #include <native.h>
  3. /* Header for class java_lang_Thread */
  4.  
  5. #ifndef _Included_java_lang_Thread
  6. #define _Included_java_lang_Thread
  7. struct Hjava_lang_Thread;
  8. struct Hjava_lang_Runnable;
  9. struct Hjava_lang_ThreadGroup;
  10.  
  11. typedef struct Classjava_lang_Thread {
  12.     struct HArrayOfChar *name;
  13.     long priority;
  14.     struct Hjava_lang_Thread *threadQ;
  15.     long PrivateInfo;
  16.     long eetop;
  17.     /*boolean*/ long single_step;
  18.     /*boolean*/ long daemon;
  19.     /*boolean*/ long stillborn;
  20.     struct Hjava_lang_Runnable *target;
  21.     /*boolean*/ long interruptRequested;
  22. /* Inaccessible static: activeThreadQ */
  23.     struct Hjava_lang_ThreadGroup *group;
  24. /* Inaccessible static: threadInitNumber */
  25. #define java_lang_Thread_MIN_PRIORITY 1L
  26. #define java_lang_Thread_NORM_PRIORITY 5L
  27. #define java_lang_Thread_MAX_PRIORITY 10L
  28. } Classjava_lang_Thread;
  29. HandleTo(java_lang_Thread);
  30.  
  31. #ifdef __cplusplus
  32. extern "C" {
  33. #endif
  34. extern struct Hjava_lang_Thread *java_lang_Thread_currentThread(struct Hjava_lang_Thread *);
  35. extern void java_lang_Thread_yield(struct Hjava_lang_Thread *);
  36. extern void java_lang_Thread_sleep(struct Hjava_lang_Thread *,int64_t);
  37. extern void java_lang_Thread_start(struct Hjava_lang_Thread *);
  38. extern /*boolean*/ long java_lang_Thread_isAlive(struct Hjava_lang_Thread *);
  39. extern long java_lang_Thread_countStackFrames(struct Hjava_lang_Thread *);
  40. extern void java_lang_Thread_setPriority0(struct Hjava_lang_Thread *,long);
  41. struct Hjava_lang_Object;
  42. extern void java_lang_Thread_stop0(struct Hjava_lang_Thread *,struct Hjava_lang_Object *);
  43. extern void java_lang_Thread_suspend0(struct Hjava_lang_Thread *);
  44. extern void java_lang_Thread_resume0(struct Hjava_lang_Thread *);
  45. #ifdef __cplusplus
  46. }
  47. #endif
  48. #endif
  49.