Valhalla Legends Archive

Programming => General Programming => C/C++ Programming => Topic started by: Banana fanna fo fanna on November 28, 2003, 11:07 PM

Title: My Linux threading lib I wrote last year...
Post by: Banana fanna fo fanna on November 28, 2003, 11:07 PM
Just dug this up

http://www.pscode.com/vb/scripts/ShowCode.asp?txtCodeId=2910&lngWId=3

It's cooperative, but I think it's a nice way to show how setjmp and hardcore macros work.
Title: Re:My Linux threading lib I wrote last year...
Post by: iago on November 29, 2003, 07:44 AM
in my Compilers class we use setjmp/longjmp a lot.  I can't stand them, personally, they make the code hard to follow, and my prof writes crappy code already, but because we're using ANSI C, the structure would get quite nasty without it.  Give me OOP, though, and I could write it SO much better!

Anyway, that's my rant.  setjmp/longjmp are cool. :)