Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
02110-1301, USA.
- $Id: threads.h 7246 2007-01-29 18:49:05Z twisti $
+ $Id: threads.h 7652 2007-04-03 14:23:16Z twisti $
*/
#endif
-/* thread priorities **********************************************************/
-
-#define MIN_PRIORITY 1
-#define NORM_PRIORITY 5
-#define MAX_PRIORITY 10
-
-
/* current threadobject *******************************************************/
#if defined(HAVE___THREAD)
/* threadobject ****************************************************************
- Every java.lang.Thread object is actually an instance of this
- structure.
+ Struct holding thread local variables.
*******************************************************************************/
struct threadobject {
- java_lang_Thread o; /* the java.lang.Thread object */
+ java_lang_Thread *object; /* link to java.lang.Thread object */
lock_execution_env_t ee; /* data for the lock implementation */
/* stackframeinfo *************************************************************/
-#define STACKFRAMEINFO (&(THREADOBJECT->_stackframeinfo))
+#define STACKFRAMEINFO (THREADOBJECT->_stackframeinfo)
/* variables ******************************************************************/
void threads_preinit(void);
bool threads_init(void);
+void threads_start_javathread(java_lang_Thread *object);
void threads_start_thread(threadobject *thread, functionptr function);
void threads_set_thread_priority(pthread_t tid, int priority);