This commit is contained in:
Simon
2025-06-17 01:15:43 +02:00
parent a0e2a59f96
commit e8ec76112b
4 changed files with 20 additions and 9 deletions

View File

@@ -6,10 +6,14 @@
typedef void (*kickoff_t)(void*);
void Thread::kickoff(Thread* object) {
Guard::leave();
//Guard::leave();
object->action(); }
Thread::Thread(void* tos) { (void)tos; }
Thread::Thread(void* tos) {
volatile bool kill_flag;
Context context;
Thread* queue_link;
}
void Thread::resume(Thread* next) { (void)next; }

View File

@@ -42,7 +42,6 @@ class Thread {
public:
/*! \brief Marker for a dying thread
*/
volatile bool kill_flag;
/*! \brief Constructor
* Initializes the context using \ref prepareContext with the given stack