Gamaru / clutil

Automatically exported from code.google.com/p/clutil
0 stars 0 forks source link

Thread safety #6

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
clUtil is not thread safe because there is only one "current device" integer 
for the whole program. Also, since command queues are not necessarily thread 
safe, we need a new command queue for each thread. C++0x's thread local storage 
can probably solve this issue. If not, we can use pthread_getspecific() to 
emulate TLS.

Original issue reported on code.google.com by rick.web...@gmail.com on 20 Dec 2010 at 9:51