Merge pull request #21374 from cudawarped:fix_cuda_event_flags

Allow cv::cuda::Event to accept combinations of flags
This commit is contained in:
cudawarped
2022-01-11 20:57:25 +00:00
committed by GitHub
parent c3e27bcf87
commit ecfbaa267d
2 changed files with 3 additions and 2 deletions
+2 -1
View File
@@ -924,7 +924,7 @@ public:
INTERPROCESS = 0x04 /**< Event is suitable for interprocess use. DisableTiming must be set */
};
CV_WRAP explicit Event(Event::CreateFlags flags = Event::CreateFlags::DEFAULT);
CV_WRAP explicit Event(const Event::CreateFlags flags = Event::CreateFlags::DEFAULT);
//! records an event
CV_WRAP void record(Stream& stream = Stream::Null());
@@ -946,6 +946,7 @@ private:
friend struct EventAccessor;
};
CV_ENUM_FLAGS(Event::CreateFlags)
//! @} cudacore_struct