setcontext, getcontext in NDK?

793 views
Skip to first unread message

Dmitry Golubovsky

unread,
Jul 15, 2011, 12:40:37 PM7/15/11
to android-ndk
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.

David Turner

unread,
Jul 16, 2011, 8:20:53 AM7/16/11
to andro...@googlegroups.com
On Fri, Jul 15, 2011 at 6:40 PM, Dmitry Golubovsky <golub...@gmail.com> wrote:
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 post to this group, send email to andro...@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

unread,
Apr 19, 2018, 3:32:27 PM4/19/18
to android-ndk
Any progress? Since it has been years after this thread began. Or any alternative we can use?

Glenn Kasten

unread,
Apr 19, 2018, 3:38:57 PM4/19/18
to android-ndk
A web search shows some references to these APIs considered deprecated due to non-portability etc.
Here is one such reference:

Yuanfang Chen

unread,
May 21, 2018, 10:55:01 AM5/21/18
to android-ndk
The alternative is to to use boost Context / Fiber.

Vano Chkheidze

unread,
Dec 4, 2018, 8:54:30 PM12/4/18
to android-ndk
hello i cant find information how to rewrite getcontext setcontext swapcontext to boost fiber can ayon help me ?
Reply all
Reply to author
Forward
0 new messages