comparison base/TempDirectory.h @ 98:604bd4ee3ed4

* Add a method in System.{cpp,h} to try to establish whether a process of a given pid is running or not * Make TempDirectory store its process ID, and clean up any old temporary directories it finds that correspond to non-running processes
author Chris Cannam
date Fri, 05 May 2006 11:28:04 +0000
parents f277a171749d
children b290c43f01ec
comparison
equal deleted inserted replaced
97:22494cc28c9f 98:604bd4ee3ed4
68 */ 68 */
69 void cleanup(); 69 void cleanup();
70 70
71 protected: 71 protected:
72 TempDirectory(); 72 TempDirectory();
73
74 QString createTempDirectoryIn(QString inDir);
73 void cleanupDirectory(QString tmpDir); 75 void cleanupDirectory(QString tmpDir);
76 void cleanupAbandonedDirectories(QString svDir);
77
74 QString m_tmpdir; 78 QString m_tmpdir;
75 QMutex m_mutex; 79 QMutex m_mutex;
76 80
77 static TempDirectory *m_instance; 81 static TempDirectory *m_instance;
78 }; 82 };