This class encapsulates a queue of asynchronous calls. More...
#include <cuda.hpp>
Public Types | |
typedef void(* | StreamCallback) (int status, void *userData) |
Public Member Functions | |
CV_WRAP | Stream () |
creates a new asynchronous stream More... | |
CV_WRAP | Stream (const Ptr< GpuMat::Allocator > &allocator) |
creates a new asynchronous stream with custom allocator More... | |
CV_WRAP | Stream (const size_t cudaFlags) |
creates a new Stream using the cudaFlags argument to determine the behaviors of the stream More... | |
CV_WRAP bool | queryIfComplete () const |
Returns true if the current stream queue is finished. Otherwise, it returns false. More... | |
CV_WRAP void | waitForCompletion () |
Blocks the current CPU thread until all operations in the stream are complete. More... | |
CV_WRAP void | waitEvent (const Event &event) |
Makes a compute stream wait on an event. More... | |
void | enqueueHostCallback (StreamCallback callback, void *userData) |
Adds a callback to be called on the host after all currently enqueued items in the stream have completed. More... | |
operator bool_type () const | |
returns true if stream object is not default (!= 0) More... | |
CV_WRAP void * | cudaPtr () const |
return Pointer to CUDA stream More... | |
Static Public Member Functions | |
static CV_WRAP Stream & | Null () |
return Stream object for default CUDA stream More... | |
Friends | |
struct | StreamAccessor |
class | BufferPool |
class | DefaultDeviceInitializer |
This class encapsulates a queue of asynchronous calls.
typedef void(* cv::cuda::Stream::StreamCallback) (int status, void *userData) |
CV_WRAP cv::cuda::Stream::Stream | ( | ) |
creates a new asynchronous stream
CV_WRAP cv::cuda::Stream::Stream | ( | const Ptr< GpuMat::Allocator > & | allocator | ) |
creates a new asynchronous stream with custom allocator
CV_WRAP cv::cuda::Stream::Stream | ( | const size_t | cudaFlags | ) |
creates a new Stream using the cudaFlags argument to determine the behaviors of the stream
CV_WRAP void* cv::cuda::Stream::cudaPtr | ( | ) | const |
return Pointer to CUDA stream
void cv::cuda::Stream::enqueueHostCallback | ( | StreamCallback | callback, |
void * | userData | ||
) |
Adds a callback to be called on the host after all currently enqueued items in the stream have completed.
return Stream object for default CUDA stream
cv::cuda::Stream::operator bool_type | ( | ) | const |
returns true if stream object is not default (!= 0)
CV_WRAP bool cv::cuda::Stream::queryIfComplete | ( | ) | const |
Returns true if the current stream queue is finished. Otherwise, it returns false.
Makes a compute stream wait on an event.
CV_WRAP void cv::cuda::Stream::waitForCompletion | ( | ) |
Blocks the current CPU thread until all operations in the stream are complete.
|
friend |
|
friend |
|
friend |