ext/boost/thread/barrier.hpp in passenger-3.0.0 vs ext/boost/thread/barrier.hpp in passenger-3.0.1
- old
+ new
@@ -7,10 +7,11 @@
#ifndef BOOST_BARRIER_JDM030602_HPP
#define BOOST_BARRIER_JDM030602_HPP
#include <boost/thread/detail/config.hpp>
+#include <boost/throw_exception.hpp>
#include <boost/thread/mutex.hpp>
#include <boost/thread/condition_variable.hpp>
#include <string>
#include <stdexcept>
@@ -25,10 +26,10 @@
public:
barrier(unsigned int count)
: m_threshold(count), m_count(count), m_generation(0)
{
if (count == 0)
- throw std::invalid_argument("count cannot be zero.");
+ boost::throw_exception(std::invalid_argument("count cannot be zero."));
}
bool wait()
{
boost::mutex::scoped_lock lock(m_mutex);