| 5491 | static volatile cl_int default_error_; |
| 5492 | public: |
| 5493 | CommandQueue( |
| 5494 | cl_command_queue_properties properties, |
| 5495 | cl_int* err = NULL) |
| 5496 | { |
| 5497 | cl_int error; |
| 5498 | |
| 5499 | Context context = Context::getDefault(&error); |
| 5500 | detail::errHandler(error, __CREATE_CONTEXT_ERR); |
| 5501 | |
| 5502 | if (error != CL_SUCCESS) { |
| 5503 | if (err != NULL) { |
| 5504 | *err = error; |
| 5505 | } |
| 5506 | } |
| 5507 | else { |
| 5508 | Device device = context.getInfo<CL_CONTEXT_DEVICES>()[0]; |
| 5509 | |
| 5510 | object_ = ::clCreateCommandQueue( |
| 5511 | context(), device(), properties, &error); |
| 5512 | |
| 5513 | detail::errHandler(error, __CREATE_COMMAND_QUEUE_ERR); |
| 5514 | if (err != NULL) { |
| 5515 | *err = error; |
| 5516 | } |
| 5517 | } |
| 5518 | } |
| 5519 | /*! |
| 5520 | * \brief Constructs a CommandQueue for an implementation defined device in the given context |
| 5521 | */ |
nothing calls this directly
no test coverage detected