Skip to content
This repository
Browse code

Fix external queue attaching file::streams to file before open(). Fixes

  • Loading branch information...
commit 0a5b9ab992850e7fd988761102a96829ae43ee86 1 parent 9496caa
Mathias Rav Mortal authored

Showing 1 changed file with 3 additions and 1 deletion. Show diff stats Hide diff stats

  1. +3 1 tpie/queue.h
4 tpie/queue.h
@@ -45,8 +45,10 @@ class queue {
45 45 /// \brief Constructor for Temporary Queue
46 46 ////////////////////////////////////////////////////////////////////
47 47 queue(stream_size_type elements=std::numeric_limits<stream_size_type>::max(),
48   - double block_factor=1.0): m_size(0), m_file(block_factor), m_back(m_file), m_front(m_file) {
  48 + double block_factor=1.0): m_size(0), m_file(block_factor) {
49 49 m_file.open(m_temp, access_read_write, sizeof(stream_size_type) );
  50 + m_back.attach(m_file);
  51 + m_front.attach(m_file);
50 52 unused(elements);
51 53 }
52 54

0 comments on commit 0a5b9ab

Please sign in to comment.
Something went wrong with that request. Please try again.