mirror of
https://github.com/mmueller41/mxtasking.git
synced 2026-01-21 12:42:57 +01:00
Added entrypoint for pthread_create to Worker.
This commit is contained in:
@@ -32,6 +32,16 @@ public:
|
|||||||
*/
|
*/
|
||||||
void execute();
|
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.
|
* @return Id of the logical core this worker runs on.
|
||||||
*/
|
*/
|
||||||
|
|||||||
Reference in New Issue
Block a user