merged threadlist & threadobject improvements
[cacao.git] / src / threads / posix / thread-posix.hpp
index 32503c4da1a20bb7395b27ff561811d5231694c2..b8e63635f769497cf3e9764a0ef0874069dc4797 100644 (file)
@@ -1,6 +1,6 @@
 /* src/threads/posix/thread-posix.hpp - POSIX thread functions
 
-   Copyright (C) 1996-2005, 2006, 2007, 2008
+   Copyright (C) 1996-2011
    CACAOVM - Verein zur Foerderung der freien virtuellen Maschine CACAO
 
    This file is part of CACAO.
@@ -74,6 +74,7 @@ struct threadobject {
        s4                    index;        /* thread index, starting with 1      */
        u4                    flags;        /* flag field                         */
        u4                    state;        /* state field                        */
+       bool                  is_in_active_list; /* for debugging only            */
 
        pthread_t             tid;          /* pthread id                         */
 
@@ -256,7 +257,6 @@ inline static void thread_set_current(threadobject* t)
        result = pthread_setspecific(thread_current_key, t);
 
        if (result != 0)
-#warning Use below method instead!
                //os::abort_errnum(result, "thread_set_current: pthread_setspecific failed");
                vm_abort("thread_set_current: pthread_setspecific failed");
 #endif