Implement invocation interface; don't create new thread for main.
From-SVN: r42428
This commit is contained in:
@@ -73,6 +73,7 @@ CXXCPP = @CXXCPP@
|
||||
DIRLTDL = @DIRLTDL@
|
||||
DIVIDESPEC = @DIVIDESPEC@
|
||||
DLLTOOL = @DLLTOOL@
|
||||
EXCEPTIONSPEC = @EXCEPTIONSPEC@
|
||||
EXEEXT = @EXEEXT@
|
||||
GCC_UNWIND_INCLUDE = @GCC_UNWIND_INCLUDE@
|
||||
GCDEPS = @GCDEPS@
|
||||
|
||||
@@ -102,11 +102,8 @@ _Jv_InitThreads (void)
|
||||
{
|
||||
}
|
||||
|
||||
inline _Jv_Thread_t *
|
||||
_Jv_ThreadInitData (java::lang::Thread *)
|
||||
{
|
||||
return NULL;
|
||||
}
|
||||
_Jv_Thread_t *
|
||||
_Jv_ThreadInitData (java::lang::Thread *);
|
||||
|
||||
inline void
|
||||
_Jv_ThreadDestroyData (_Jv_Thread_t *data)
|
||||
@@ -130,6 +127,16 @@ _Jv_ThreadSetPriority (_Jv_Thread_t *, jint)
|
||||
{
|
||||
}
|
||||
|
||||
inline void
|
||||
_Jv_ThreadRegister (_Jv_Thread_t *data)
|
||||
{
|
||||
}
|
||||
|
||||
inline void
|
||||
_Jv_ThreadUnRegister (void)
|
||||
{
|
||||
}
|
||||
|
||||
void _Jv_ThreadStart (java::lang::Thread *, _Jv_Thread_t *,
|
||||
_Jv_ThreadStartFunc *meth);
|
||||
|
||||
|
||||
@@ -194,6 +194,9 @@ _Jv_ThreadYield (void)
|
||||
#endif /* HAVE_SCHED_YIELD */
|
||||
}
|
||||
|
||||
void _Jv_ThreadRegister (_Jv_Thread_t *data);
|
||||
void _Jv_ThreadUnRegister ();
|
||||
|
||||
void _Jv_ThreadSetPriority (_Jv_Thread_t *data, jint prio);
|
||||
|
||||
void _Jv_ThreadStart (java::lang::Thread *thread, _Jv_Thread_t *data,
|
||||
|
||||
@@ -25,6 +25,7 @@ typedef struct
|
||||
{
|
||||
int flags; // Flags are defined in implementation.
|
||||
HANDLE handle; // Actual handle to the thread
|
||||
java::lang::Thread *thread_obj;
|
||||
} _Jv_Thread_t;
|
||||
|
||||
typedef void _Jv_ThreadStartFunc (java::lang::Thread *);
|
||||
@@ -120,6 +121,9 @@ _Jv_ThreadYield (void)
|
||||
Sleep (0);
|
||||
}
|
||||
|
||||
void _Jv_ThreadRegister (_Jv_Thread_t *data);
|
||||
void _Jv_ThreadUnRegister ();
|
||||
|
||||
void _Jv_ThreadSetPriority (_Jv_Thread_t *data, jint prio);
|
||||
void _Jv_ThreadStart (java::lang::Thread *thread, _Jv_Thread_t *data,
|
||||
_Jv_ThreadStartFunc *meth);
|
||||
|
||||
Reference in New Issue
Block a user