3 ms·
maybe i mis understand lightweight, but this looks enormous to me. wrapping the atomic int in a platform independent interface with maximal inlining and compil
by jheriko 13y ago
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.
- yoklov 13y agoWell, 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).
- chas 13y agoIf you want low-overhead pseudo-concurrency for C, protothreads [1] are probably what you are looking for. [1] http://dunkels.com/adam/pt/ http://dunkels.com/adam/pt/