Skip to content
This repository has been archived by the owner on Jul 22, 2024. It is now read-only.

Docs on "task switching" could use clarification #637

Closed
JeffFessler opened this issue Mar 27, 2022 · 0 comments · Fixed by #654
Closed

Docs on "task switching" could use clarification #637

JeffFessler opened this issue Mar 27, 2022 · 0 comments · Fixed by #654

Comments

@JeffFessler
Copy link
Contributor

The last two paragraphs of the signals documentation page says:

Warning: it is essential to avoid task switching inside Gtk callbacks, as this corrupts the Gtk C-stack.
For example, use @async print or queue a message for yourself.
...
These restrictions should be fixed once JuliaLang/julia#13099 is merged.

First, the phrase "For example, use @async print or queue a message for yourself." is unclear to me. Does it mean this is an example of task switching that should be avoided, or is it an instruction for how to avoid task switching?

Second, it looks like JuliaLang/julia#13099 is merged, so should these two paragraphs be deleted? Or is some warning still needed?

I am studying this documentation because I have a Gtk callback with a read call (from an audio stream) in it that is not working (it just hangs, does not crash), so I am wondering if I am "task switching" unknowingly.

I would submit a PR to refine the documentation if I understood the situation...

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant