-
-
Notifications
You must be signed in to change notification settings - Fork 608
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
Initialization hangs when using threads #122
Comments
You must compile the feature/nested-volatile branch of https://github.com/SirSnyder/pthreads in order to make basic threading work with MadelineProto (it is now thread safe, but there are still some bugs I've yet to fix) |
Thanks, haven't seen in documentation.
|
And that's where I'm stuck on atm |
Ok, I haven't got that threading is not usable atm. I need to continue reading incoming message while doing a long operation, like downloading a large media. Will get back to that meanwhile, but if you have a better suggestion I'm all ears... |
Let's move this to #4 |
I'm making some test with the
treading
branch and I'm having an infinite loop during initialization.This is an excerpt of my code:
where the last
echo 'ok'
is never printed.This is what it's logged in ULTRA_VERBOSE mode:
the last 5 lines are repeated forever untill I kill the process from another console (CTRL+C doesn't work).
It seems that
MTProto::start_threads()
never pass thewhile()
loop that waits for the socket to become ready.The text was updated successfully, but these errors were encountered: