Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

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

  • Loading branch information...
commit 0a5b9ab992850e7fd988761102a96829ae43ee86 1 parent 9496caa
@Mortal Mortal authored
Showing with 3 additions and 1 deletion.
  1. +3 −1 tpie/queue.h
View
4 tpie/queue.h
@@ -45,8 +45,10 @@ class queue {
/// \brief Constructor for Temporary Queue
////////////////////////////////////////////////////////////////////
queue(stream_size_type elements=std::numeric_limits<stream_size_type>::max(),
- double block_factor=1.0): m_size(0), m_file(block_factor), m_back(m_file), m_front(m_file) {
+ double block_factor=1.0): m_size(0), m_file(block_factor) {
m_file.open(m_temp, access_read_write, sizeof(stream_size_type) );
+ m_back.attach(m_file);
+ m_front.attach(m_file);
unused(elements);
}
Please sign in to comment.
Something went wrong with that request. Please try again.