Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
02110-1301, USA.
- $Id: threads-common.h 7998 2007-06-01 00:29:51Z twisti $
-
*/
/* thread states **************************************************************/
-#define THREAD_STATE_NEW 1
-#define THREAD_STATE_RUNNABLE 2
-#define THREAD_STATE_BLOCKED 3
-#define THREAD_STATE_WAITING 4
-#define THREAD_STATE_TIMED_WAITING 5
-#define THREAD_STATE_TERMINATED 6
+#define THREAD_STATE_NEW 0
+#define THREAD_STATE_RUNNABLE 1
+#define THREAD_STATE_BLOCKED 2
+#define THREAD_STATE_WAITING 3
+#define THREAD_STATE_TIMED_WAITING 4
+#define THREAD_STATE_TERMINATED 5
/* thread priorities **********************************************************/
void threads_list_lock(void);
void threads_list_unlock(void);
+void threads_mutex_join_lock(void);
+void threads_mutex_join_unlock(void);
+
void threads_set_current_threadobject(threadobject *thread);
void threads_impl_thread_new(threadobject *t);
void threads_impl_thread_free(threadobject *t);
void threads_impl_thread_start(threadobject *thread, functionptr f);
+void threads_yield(void);
+
#endif /* ENABLE_THREADS */
#endif /* _THREADS_COMMON_H */