Discussion:
setcontext, getcontext in NDK?
(too old to reply)
Dmitry Golubovsky
2011-07-15 16:40:37 UTC
Permalink
Hi,

Are the setcontext and getcontext (defined in <ucontext.h>) functions
available in Android NDK and since which version?

If not, is any native cooperative threading facility available/
recommended?

Thanks.
--
You received this message because you are subscribed to the Google Groups "android-ndk" group.
To post to this group, send email to android-***@googlegroups.com.
To unsubscribe from this group, send email to android-ndk+***@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/android-ndk?hl=en.
David Turner
2011-07-16 12:20:53 UTC
Permalink
Post by Dmitry Golubovsky
Hi,
Are the setcontext and getcontext (defined in <ucontext.h>) functions
available in Android NDK and since which version?
Nope, they're currently not implemented.
If not, is any native cooperative threading facility available/
recommended?
Thanks.
--
You received this message because you are subscribed to the Google Groups
"android-ndk" group.
To unsubscribe from this group, send email to
For more options, visit this group at
http://groups.google.com/group/android-ndk?hl=en.
--
You received this message because you are subscribed to the Google Groups "android-ndk" group.
To post to this group, send email to android-***@googlegroups.com.
To unsubscribe from this group, send email to android-ndk+***@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/android-ndk?hl=en.
Wang Renxin
2018-04-19 12:43:53 UTC
Permalink
Any progress? Since it has been years after this thread began. Or any
alternative we can use?
--
You received this message because you are subscribed to the Google Groups "android-ndk" group.
To unsubscribe from this group and stop receiving emails from it, send an email to android-ndk+***@googlegroups.com.
To post to this group, send email to android-***@googlegroups.com.
Visit this group at https://groups.google.com/group/android-ndk.
To view this discussion on the web visit https://groups.google.com/d/msgid/android-ndk/56265892-400a-4ee4-8e2e-87aa4860b5bb%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Glenn Kasten
2018-04-19 19:38:57 UTC
Permalink
A web search shows some references to these APIs considered deprecated due
to non-portability etc.
Here is one such reference:

https://lwn.net/Articles/496359/
Post by Wang Renxin
Any progress? Since it has been years after this thread began. Or any
alternative we can use?
--
You received this message because you are subscribed to the Google Groups "android-ndk" group.
To unsubscribe from this group and stop receiving emails from it, send an email to android-ndk+***@googlegroups.com.
To post to this group, send email to android-***@googlegroups.com.
Visit this group at https://groups.google.com/group/android-ndk.
To view this discussion on the web visit https://groups.google.com/d/msgid/android-ndk/6c6f1be9-d293-4b4a-b114-c5b9f700f4b9%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Yuanfang Chen
2018-05-21 01:02:59 UTC
Permalink
The alternative is to to use boost Context / Fiber.
Post by Wang Renxin
Any progress? Since it has been years after this thread began. Or any
alternative we can use?
--
You received this message because you are subscribed to the Google Groups "android-ndk" group.
To unsubscribe from this group and stop receiving emails from it, send an email to android-ndk+***@googlegroups.com.
To post to this group, send email to android-***@googlegroups.com.
Visit this group at https://groups.google.com/group/android-ndk.
To view this discussion on the web visit https://groups.google.com/d/msgid/android-ndk/dd00f65c-c3ce-40f5-b944-412af0cc569f%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Vano Chkheidze
2018-12-05 00:34:40 UTC
Permalink
hello i cant find information how to rewrite getcontext setcontext
swapcontext to boost fiber can ayon help me ?
--
You received this message because you are subscribed to the Google Groups "android-ndk" group.
To unsubscribe from this group and stop receiving emails from it, send an email to android-ndk+***@googlegroups.com.
To post to this group, send email to android-***@googlegroups.com.
Visit this group at https://groups.google.com/group/android-ndk.
To view this discussion on the web visit https://groups.google.com/d/msgid/android-ndk/8e925aad-ce0a-418a-9349-0973da755714%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Loading...