[compute] 04/46: Make event::wait() const
Ghislain Vaillant
ghisvail-guest at moszumanska.debian.org
Mon Dec 21 18:28:36 UTC 2015
This is an automated email from the git hooks/post-receive script.
ghisvail-guest pushed a commit to branch master
in repository compute.
commit c248dadbca130746da057c1a0f1ffcd3da1b90f5
Author: Kyle Lutz <kyle.r.lutz at gmail.com>
Date: Wed Sep 23 21:39:02 2015 -0700
Make event::wait() const
---
include/boost/compute/async/future.hpp | 4 ++--
include/boost/compute/event.hpp | 2 +-
2 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/include/boost/compute/async/future.hpp b/include/boost/compute/async/future.hpp
index 692dd73..f7f7780 100644
--- a/include/boost/compute/async/future.hpp
+++ b/include/boost/compute/async/future.hpp
@@ -73,7 +73,7 @@ public:
/// Blocks until the computation is complete.
void wait() const
{
- const_cast<event &>(m_event).wait();
+ m_event.wait();
}
/// Returns the underlying event object.
@@ -141,7 +141,7 @@ public:
void wait() const
{
- const_cast<event &>(m_event).wait();
+ m_event.wait();
}
event get_event() const
diff --git a/include/boost/compute/event.hpp b/include/boost/compute/event.hpp
index e9aa2b7..2f53d87 100644
--- a/include/boost/compute/event.hpp
+++ b/include/boost/compute/event.hpp
@@ -210,7 +210,7 @@ public:
/// Blocks until the actions corresponding to the event have
/// completed.
- void wait()
+ void wait() const
{
cl_int ret = clWaitForEvents(1, &m_event);
if(ret != CL_SUCCESS){
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/debian-science/packages/compute.git
More information about the debian-science-commits
mailing list