aboutsummaryrefslogtreecommitdiff
path: root/libjava/include
diff options
context:
space:
mode:
authorPer Bothner <per@bothner.com>2001-05-21 23:47:48 -0700
committerPer Bothner <bothner@gcc.gnu.org>2001-05-21 23:47:48 -0700
commitc93d7fae7b9825449c023d42eb40641c0ad80be2 (patch)
treeecfc0fb5d915f5f6596ef061114d1b6b7ec5270a /libjava/include
parentb4fbaca7cb5c6ff5fb5e24e554d510257cb488eb (diff)
downloadgcc-c93d7fae7b9825449c023d42eb40641c0ad80be2.zip
gcc-c93d7fae7b9825449c023d42eb40641c0ad80be2.tar.gz
gcc-c93d7fae7b9825449c023d42eb40641c0ad80be2.tar.bz2
Implement invocation interface; don't create new thread for main.
From-SVN: r42428
Diffstat (limited to 'libjava/include')
-rw-r--r--libjava/include/Makefile.in1
-rw-r--r--libjava/include/no-threads.h17
-rw-r--r--libjava/include/posix-threads.h3
-rw-r--r--libjava/include/win32-threads.h4
4 files changed, 20 insertions, 5 deletions
diff --git a/libjava/include/Makefile.in b/libjava/include/Makefile.in
index fe6a12d..541fa32 100644
--- a/libjava/include/Makefile.in
+++ b/libjava/include/Makefile.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@
diff --git a/libjava/include/no-threads.h b/libjava/include/no-threads.h
index 69b6d43..1cd2471 100644
--- a/libjava/include/no-threads.h
+++ b/libjava/include/no-threads.h
@@ -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);
diff --git a/libjava/include/posix-threads.h b/libjava/include/posix-threads.h
index ca4bfa6..ad09bed 100644
--- a/libjava/include/posix-threads.h
+++ b/libjava/include/posix-threads.h
@@ -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,
diff --git a/libjava/include/win32-threads.h b/libjava/include/win32-threads.h
index 31b961b..a646632 100644
--- a/libjava/include/win32-threads.h
+++ b/libjava/include/win32-threads.h
@@ -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);