OSDN Git Service

os,llvmpipe: Set rasterizer thread names on Linux.
authorJose Fonseca <jfonseca@vmware.com>
Fri, 13 Feb 2015 13:51:28 +0000 (13:51 +0000)
committerJose Fonseca <jfonseca@vmware.com>
Fri, 13 Feb 2015 19:42:21 +0000 (19:42 +0000)
commitc944b91190048e370d2adc362f0860d9f58e58f2
tree10095c3578952838a240bb6028cd51ab204e6561
parentb09f25428ff5e908aefc03b8f9931599c3afd6d2
os,llvmpipe: Set rasterizer thread names on Linux.

To help identify llvmpipe rasterizer threads -- especially when there
can be so many.

We can eventually generalize this to other OSes, but for that we must
restrict the function to be called from the current thread.  See also
http://stackoverflow.com/a/7989973

Reviewed-by: Roland Scheidegger <sroland@vmware.com>
src/gallium/auxiliary/os/os_thread.h
src/gallium/drivers/llvmpipe/lp_rast.c