Mesa Looks To Take Use Of C11 Threading
Jose Fonseca is seeking comment from Mesa developers about possibly taking advantage of C language thread primitives that were introduced in the new C11 standard.
Fonseca wrote yesterday, "Mesa source tree currently has 4 abstraction of threading primitives (in gallium, glapi, mapi, and egl components). I'd like to unify all them, and since now the C11 standard introduced a threads.h header, I'd like to use that as model."
The threads header file with C11 sets the semantics for multi-threading and provides lightweight inter-thread communication via atomic variables.
He's already done an early Mesa C11 threads implementation within c11-threads. He went on to say, "If there are no objections, the next step would be to eliminate all threading abstractions and just use C11 threads.h primitives...A nice side-benefit of this is that the pre-vista Win32 conditional var implement should be much better than what we have now, which should speed up multithreaded llvmpipe on windows substantially. The same principle could be applied to atomic operations."
So far the limited development feedback on the C11 threads proposal for Mesa is in support of this change.
Latest Articles & Reviews
Latest Linux News
Most Viewed News This Week