aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael West <michael.west@ettus.com>2013-10-23 15:31:21 -0700
committerMichael West <michael.west@ettus.com>2013-10-23 15:31:21 -0700
commit5823ecdade512250842e683506e4dc976b129ac4 (patch)
tree76bc9a5125e2a69b5d84733e473604e3539be949
parentbc372dd82ca727e59794a7147dcf9b6a332cc78c (diff)
downloaduhd-5823ecdade512250842e683506e4dc976b129ac4.tar.gz
uhd-5823ecdade512250842e683506e4dc976b129ac4.tar.bz2
uhd-5823ecdade512250842e683506e4dc976b129ac4.zip
CID 1104321: Fixed uninitialized scalar
-rw-r--r--host/include/uhd/utils/atomic.hpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/host/include/uhd/utils/atomic.hpp b/host/include/uhd/utils/atomic.hpp
index 8ddee73ca..5f0a056d2 100644
--- a/host/include/uhd/utils/atomic.hpp
+++ b/host/include/uhd/utils/atomic.hpp
@@ -78,6 +78,12 @@ namespace uhd{
class UHD_API reusable_barrier{
public:
+ reusable_barrier():_size (1) {}
+
+ reusable_barrier(const size_t size) {
+ _size = size;
+ }
+
//! Resize the barrier for N threads
void resize(const size_t size){
_size = size;