aboutsummaryrefslogtreecommitdiffstats
path: root/host/lib/usrp/e300
diff options
context:
space:
mode:
authorMartin Siegumfeldt <mns@gomspace.com>2017-05-05 09:43:43 +0200
committerMartin Braun <martin.braun@ettus.com>2017-05-23 17:17:43 -0700
commitb082aa444c126703980eb973c476767dce80c3ed (patch)
treebe35edc15f7821de4ef6ed4ad96a45608bf7e462 /host/lib/usrp/e300
parent2c0f1098351d6c0763d985c2085ec676a7992e2d (diff)
downloaduhd-b082aa444c126703980eb973c476767dce80c3ed.tar.gz
uhd-b082aa444c126703980eb973c476767dce80c3ed.tar.bz2
uhd-b082aa444c126703980eb973c476767dce80c3ed.zip
Add missing variable initialization
- and thereby avoid deadlock upon the first wait() invocation Signed-off-by: Martin Siegumfeldt <mns@gomspace.com>
Diffstat (limited to 'host/lib/usrp/e300')
-rw-r--r--host/lib/usrp/e300/e300_fifo_config.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/host/lib/usrp/e300/e300_fifo_config.cpp b/host/lib/usrp/e300/e300_fifo_config.cpp
index 556e19120..c4c563af6 100644
--- a/host/lib/usrp/e300/e300_fifo_config.cpp
+++ b/host/lib/usrp/e300/e300_fifo_config.cpp
@@ -96,7 +96,8 @@ static UHD_INLINE size_t ZF_STREAM_OFF(const size_t which)
struct e300_fifo_poll_waiter
{
e300_fifo_poll_waiter(const int fd):
- fd(fd)
+ fd(fd),
+ _poll_claimed(false)
{
//NOP
}