| 418 | |
| 419 | template <typename T> |
| 420 | inline int execution_queue_stop(ExecutionQueueId<T> id) { |
| 421 | typename ExecutionQueue<T>::scoped_ptr_t |
| 422 | ptr = ExecutionQueue<T>::address(id); |
| 423 | if (ptr != NULL) { |
| 424 | return ptr->stop(); |
| 425 | } else { |
| 426 | return EINVAL; |
| 427 | } |
| 428 | } |
| 429 | |
| 430 | template <typename T> |
| 431 | inline int execution_queue_join(ExecutionQueueId<T> id) { |