Changed: call throw_exception() function instead of ordinary throw
[libcds.git] / cds / urcu / details / check_deadlock.h
index 35d70029f476de6d158e23256a254ec70018dab4..56a87c12a07f8e1b8571eca6194ac102ec542208 100644 (file)
@@ -32,6 +32,7 @@
 #define CDSLIB_URCU_DETAILS_CHECK_DEADLOCK_H
 
 #include <cds/urcu/options.h>
+#include <cds/details/throw_exception.h>
 
 //@cond
 namespace cds { namespace urcu { namespace details {
@@ -43,7 +44,7 @@ namespace cds { namespace urcu { namespace details {
         {
             assert( !RCU::is_locked());
             if ( RCU::is_locked())
-                throw cds::urcu::rcu_deadlock();
+                CDS_THROW_EXCEPTION( cds::urcu::rcu_deadlock());
         }
     };