this post was submitted on 27 Nov 2025
4 points (100.0% liked)
Learn Programming
2027 readers
1 users here now
Posting Etiquette
-
Ask the main part of your question in the title. This should be concise but informative.
-
Provide everything up front. Don't make people fish for more details in the comments. Provide background information and examples.
-
Be present for follow up questions. Don't ask for help and run away. Stick around to answer questions and provide more details.
-
Ask about the problem you're trying to solve. Don't focus too much on debugging your exact solution, as you may be going down the wrong path. Include as much information as you can about what you ultimately are trying to achieve. See more on this here: https://xyproblem.info/
Icon base by Delapouite under CC BY 3.0 with modifications to add a gradient
founded 2 years ago
MODERATORS
you are viewing a single comment's thread
view the rest of the comments
view the rest of the comments
Did that too, still the lockup issue persisted.
Their sample code:
Is definitely doing the polling in a blocking way. I think this is intended to be run on a separate thread, and you pass the inputs to your main application thread via some other mechanism.
If your using the polling function, you should be able to do it in a single thread, but then you have to periodically check in between doing other work.
The separate thread did the trick for the most part, now I'm having a different issue, where I'll likely need a debugger. Let's hope Seer works for me and I don't have to spend a month to learn GDB, just so I don't spend 30 mins every time I need to search for a feature I don't know.
Excellent, feel free to open a new thread for your new problem then.
I used CLion on Linux, it does a good job of wrapping GDB and making it painless. Learning GDB is a valuable skill though.
Can you share your code somehow? The second call definitely shouldn't be blocking.