23 #ifndef SHEAF_DLL_SPEC_H 24 #include "SheafSystem/sheaf_dll_spec.h" 28 #include "SheafSystem/pthread.h" 31 #include "SheafSystem/std_unistd.h" 34 #ifndef SINGLY_LINKED_LIST_H 35 #include "SheafSystem/singly_linked_list.h" 47 class SHEAF_DLL_SPEC thread
57 static singly_linked_list<thread *> *_thread_list;
64 static void cleanup(thread *This);
65 static void *static_run(thread *This);
72 static int active_count();
75 singly_linked_list<thread *> *thread_list();
80 bool invariant()
const;
85 static bool is_alive(thread *other);
90 static thread *current_thread();
105 void sleep(
unsigned int seconds);
128 thread(runnable *xrunnable);
140 #endif // ifndef THREAD_H Namespace for the sheaves component of the sheaf system.