+/* threads_table_entry_t *******************************************************
+
+ An entry in the global threads table.
+
+*******************************************************************************/
+
+struct threads_table_entry_t {
+ threadobject *thread; /* an existing thread */
+ s4 next; /* next free or used index */
+};
+
+
+/* threads_table_t *************************************************************
+
+ Struct for the global threads table.
+
+*******************************************************************************/
+
+struct threads_table_t {
+ threads_table_entry_t *table; /* the table, threads[0] is the head */
+ /* of the free list. Real entries */
+ /* start at threads[1]. */
+ s4 size; /* current size of the table */
+ s4 used; /* number of thread entries */
+ s4 daemons; /* number of daemon thread entries */
+};
+
+