core: Introduce host call wrapper. (#2913)

This commit is contained in:
squidbus
2025-05-11 20:27:54 -07:00
committed by GitHub
parent 02d3ed4973
commit 678f18ddb9
3 changed files with 15 additions and 2 deletions

View File

@@ -35,7 +35,7 @@ public:
this->func = std::move(func);
PthreadAttrT attr{};
posix_pthread_attr_init(&attr);
posix_pthread_create(&thread, &attr, RunWrapper, this);
posix_pthread_create(&thread, &attr, HOST_CALL(RunWrapper), this);
posix_pthread_attr_destroy(&attr);
}