Added entrypoint for pthread_create to Worker.

This commit is contained in:
Michael Mueller
2024-02-13 19:45:31 +01:00
parent 521d325129
commit 6b983dede7

View File

@@ -32,6 +32,16 @@ public:
*/
void execute();
static void *entry(void *args) {
Worker *worker = static_cast<Worker *>(args);
if (worker == nullptr) {
Genode::error("No worker found.");
return nullptr;
}
worker->execute();
return nullptr;
}
/**
* @return Id of the logical core this worker runs on.
*/