Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
| Message-ID | <4F26F1BF.1060405@loria.fr> (permalink) |
|---|---|
| Date | 2012-01-30 20:38 +0100 |
| From | Jens Gustedt <jens.gustedt@loria.fr> |
| Newsgroups | comp.lang.c |
| Subject | Re: [I'm learning C]: Learning to use ucontext |
| References | <6113912.484.1327853172515.JavaMail.geo-discussion-forums@yqfa18> |
| Organization | Guest of ProXad - France |
Hello,
Am 01/29/2012 05:06 PM, schrieb Andrey Popp:
> Hello, I started to experimenting with ucontext to implement basic
> cooperative multithreading and stuccoed with this piece of code:
This sounds like a bad idea to me. My man page tells me:
POSIX.1-2008 removes the specifications of makecontext() and
swapcontext(), citing portability issues, and recommending
that applications be rewritten to use POSIX threads instead.
so such an implementation looks like a dead end to me.
Jens
Back to comp.lang.c | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
[I'm learning C]: Learning to use ucontext Andrey Popp <8mayday@gmail.com> - 2012-01-29 08:06 -0800
Re: [I'm learning C]: Learning to use ucontext Shao Miller <sha0.miller@gmail.com> - 2012-01-29 11:42 -0500
Re: [I'm learning C]: Learning to use ucontext Barry Schwarz <schwarzb@dqel.com> - 2012-01-29 10:07 -0800
Re: [I'm learning C]: Learning to use ucontext Jens Gustedt <jens.gustedt@loria.fr> - 2012-01-30 20:38 +0100
Re: [I'm learning C]: Learning to use ucontext Uncle Steve <stevet810@gmail.com> - 2012-01-30 18:58 -0500
Re: [I'm learning C]: Learning to use ucontext Keith Thompson <kst-u@mib.org> - 2012-01-30 17:05 -0800
csiph-web