2
0
mirror of https://github.com/boostorg/compute.git synced 2026-01-20 16:32:26 +00:00

3 Commits

Author SHA1 Message Date
Anthony C
2583e31214 Multiple refactors
- attaching user command queue failure now throws a `set_default_queue_error` exception
- default_queue() now takes optional const reference of user queue instead of pointer to user queue
- add missing items in documentation
2019-05-09 16:08:50 +08:00
Anthony C
73580396ef avoid attaching command queue more than once in debug mode 2019-04-21 21:21:44 +08:00
Anthony C
fffb9eea36 Allow manually setting default command queue via default_queue()
By doing so, the associated default device and context will automatically match the user-provided command queue. It

Guarantees unique default queue/device/context is returned when calling from multiple threads (requires config macro BOOST_COMPUTE_THREAD_SAFE)

Resolves issue #827
2019-04-21 20:39:37 +08:00