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
Original issue reported on code.google.com by
rick.web...@gmail.com
on 20 Dec 2010 at 9:51