You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It looks like hxThreadFunc that is passed as HxCreateDetachedThread's param may not be called.
I noticed that khacpp's HxCreateDetachedThread definishion stores pointer to hxThreadFunc in local variable kinc_thread_t thread. And then pointer to it is passed to pthread_create. Could it be related?
This can be reproduced with minimal Kha project (make --init) and Thread.create placed somewhere in main, compiled for android (make android-native...)
...
public static function main() {
System.start({title: "Project", width: 1024, height: 768}, function (_) {
// Just loading everything is ok for small projects
Assets.loadEverything(function () {
// Avoid passing update/render directly,
// so replacing them via code injection works
Scheduler.addTimeTask(function () { update(); }, 0, 1 / 60);
System.notifyOnFrames(function (frames) { render(frames); });
Thread .create(threadBody);
});
});
}
private static function threadBody(): Void {
while (true) {
Sys.sleep(1.0);
}
}
The text was updated successfully, but these errors were encountered:
This used to work for me, before I updated my local Kha repo. Is it possible that it broke when you removed the last Kore things and replaced with Kinc things?
sys.Thread.create
call freezes calling thread atkhacpp/src/hx/Thread.cpp
Line 309 in ccb8493
It looks like
hxThreadFunc
that is passed asHxCreateDetachedThread
's param may not be called.I noticed that khacpp's
HxCreateDetachedThread
definishion stores pointer to hxThreadFunc in local variablekinc_thread_t thread
. And then pointer to it is passed topthread_create
. Could it be related?This can be reproduced with minimal Kha project (
make --init
) andThread.create
placed somewhere inmain
, compiled for android (make android-native...
)The text was updated successfully, but these errors were encountered: