Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix coroutines not being added to desktop:dist #6822

Merged
merged 2 commits into from
May 17, 2022

Conversation

Azzurite
Copy link
Collaborator

@Azzurite Azzurite commented May 15, 2022

The first commit in here is just the last coroutine PR. The second commit 38b3e14 is the interesting one.

For some reason that I don't care about, coroutine classes are only added to the runtime classpath, not the compile classpath. So I just simply add the runtime classpath to the files included in the jar. Which just makes sense, of course we want to have the classes that are required at runtime in the .jar that runs the program.

As for this: #6801 (comment)

and now we're getting [ALSOFT] (EE) Failed to set real-time priority for thread: Operation not permitted (1) console logs

Is this new with the coroutines or did this happen before? If it's happening only now, how do I reproduce it, i.e. which platform? It's not happening on Windows & Android (with this PR) as far as I can see.

But a kotlin.concurrent.timer.Timer? Is that integrated well enough w/ the coroutine thread pool to just leave it?

I actually didn't check for kotlin.concurrent.timer.Timer. It's just a simple thread, one can still use normal threads of course, same behavior as before, so leaving it should simply change nothing. I'll see if it makes sense and how to migrate all the timers.

Copy link
Collaborator

@SomeTroglodyte SomeTroglodyte left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, ALSOFT is a Linux OpenAL thingy.

And re Music - was just meant as trigger for joint brainstorms. Remember on desktop it doesn't use a timer, piggybacking on Gdx's main loop instead. Took me months to figure out - and to balance the decision which compromise to PR.

And runtimeClasspath + compileClasspath sounds very much like "that's it"

@SomeTroglodyte
Copy link
Collaborator

Say, coroutines - didn't they have specific requirements for androidx.work? And our work-runtime-ktx:2.6.0 is a bit old, but restricted by targetApi = 30. Is that enough for coroutines 1.6?

@Azzurite
Copy link
Collaborator Author

Say, coroutines - didn't they have specific requirements for androidx.work? And our work-runtime-ktx:2.6.0 is a bit old, but restricted by targetApi = 30. Is that enough for coroutines 1.6?

Since this is a kotlin language feature/official library, I'm pretty sure this applies.

@GGGuenni GGGuenni merged commit df9b62f into yairm210:master May 17, 2022
@Azzurite Azzurite deleted the coroutines-v2 branch May 17, 2022 15:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants