Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.c > #16468

Re: [I'm learning C]: Learning to use ucontext

From Uncle Steve <stevet810@gmail.com>
Newsgroups comp.lang.c
Subject Re: [I'm learning C]: Learning to use ucontext
Date 2012-01-30 18:58 -0500
Organization Friends of the Galactic Collective
Message-ID <3058d1a5951c007-6f59a@gmail.com> (permalink)
References <6113912.484.1327853172515.JavaMail.geo-discussion-forums@yqfa18> <4F26F1BF.1060405@loria.fr>

Show all headers | View raw


On Mon, Jan 30, 2012 at 08:38:39PM +0100, Jens Gustedt wrote:
> 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

Posix threads suck.  You hafta fuck around like you wouldn't believe
in order to make something workable.

Fuck posix, even though I rely on it.  Shit.


Regards,

Uncle Steve

-- 
I don't even want the Charter back, as it was clearly 'used' by a big
blue dude when he ran out of toilet paper.  And the Criminal Code of
Canada is of course now officially listed in Jane's Miscellaneous
Munitions under the Anti-Personnel section.

Back to comp.lang.c | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread


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