[Mesa-dev] Discussion: C++11 std::future in Mesa

0xe2.0x9a.0x9b at gmail.com
Fri May 27 18:49:45 UTC 2016


Hello.

http://en.cppreference.com/w/cpp/thread/future
http://en.cppreference.com/w/cpp/thread/async

Assumption: Shader compilation will need run on separate thread(s).

>From a certain perspective, one of the easy ways of removing Mesa shader
compilation from the "main" thread would be to use std::future for some
fields in struct gl_program (defined in mtypes.h) and in related source
code.

Using std::future in the source code would mean that some parts of Mesa
need to be converted from C to C++11.

This post to mesa-dev is just to start the discussion and to determine how
many devs are in favor of C++11 (and why) and how many are against C++11
(and why) in Mesa.

Looking forward to your opinions.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/mesa-dev/attachments/20160527/9ac24b29/attachment.html>


More information about the mesa-dev mailing list