News for hackers. Stuff that matters.
Re:Lightweight concurrency library for C, featuring symmetri... by jheriko on Friday October 18, 2013 @08:46AM (#6571031)
maybe i mis understand lightweight, but this looks enormous to me.

wrapping the atomic int in a platform independent interface with maximal inlining and compiler understanding of what it is, as an example, is what i imagined from this.

Re:Lightweight concurrency library for C, featuring symmetri... by chas on Friday October 18, 2013 @10:39AM (#6571596)
If you want low-overhead pseudo-concurrency for C, protothreads [1] are probably what you are looking for.

[1] http://dunkels.com/adam/pt/

Re:Lightweight concurrency library for C, featuring symmetri... by yoklov on Friday October 18, 2013 @09:17AM (#6571173)
Well, these are green threads, if you need to do actual concurrency you should probably look elsewhere.

And, lighweight looks like it refers to the minimal amount of code in the library. Its a handful of fairly short files, enormous by no standards...

Besides, if you're writing C, C11 has the atomics support you desire. Not to mention that most programmers should stick to higher level abstractions than atomics (like mutexes).