comparison data/fileio/MatrixFile.cpp @ 690:1424aa29ae95

Seems to be a bad idea to use plain DEBUG symbol on OS/X (system wants it)
author Chris Cannam
date Tue, 14 Jun 2011 15:26:52 +0100
parents 06f13a3b9e9e
children e802e550a1f2
comparison
equal deleted inserted replaced
689:573d45e9487b 690:1424aa29ae95
66 m_readyToReadColumn(-1) 66 m_readyToReadColumn(-1)
67 { 67 {
68 Profiler profiler("MatrixFile::MatrixFile", true); 68 Profiler profiler("MatrixFile::MatrixFile", true);
69 69
70 #ifdef DEBUG_MATRIX_FILE 70 #ifdef DEBUG_MATRIX_FILE
71 DEBUG << "MatrixFile::MatrixFile(" << fileBase << ", " << int(mode) << ", " << cellSize << ", " << width << ", " << height << ")" << endl; 71 SVDEBUG << "MatrixFile::MatrixFile(" << fileBase << ", " << int(mode) << ", " << cellSize << ", " << width << ", " << height << ")" << endl;
72 #endif 72 #endif
73 73
74 m_createMutex.lock(); 74 m_createMutex.lock();
75 75
76 QDir tempDir(TempDirectory::getInstance()->getPath()); 76 QDir tempDir(TempDirectory::getInstance()->getPath());
246 246
247 void 247 void
248 MatrixFile::close() 248 MatrixFile::close()
249 { 249 {
250 #ifdef DEBUG_MATRIX_FILE 250 #ifdef DEBUG_MATRIX_FILE
251 DEBUG << "MatrixFile::close()" << endl; 251 SVDEBUG << "MatrixFile::close()" << endl;
252 #endif 252 #endif
253 if (m_fd >= 0) { 253 if (m_fd >= 0) {
254 if (::close(m_fd) < 0) { 254 if (::close(m_fd) < 0) {
255 ::perror("MatrixFile::close: close failed"); 255 ::perror("MatrixFile::close: close failed");
256 } 256 }