r663: This commit was generated by cvs2svn to compensate for changes in r662,
[cinelerra_cv.git] / cinelerra / drivesync.C
blob3f3d66693520583a870500b503c12775a15c7e52
1 #include "drivesync.h"
3 #include <stdio.h>
4 #include <unistd.h>
6 DriveSync::DriveSync()
7  : Thread()
9         done = 0;
10         set_synchronous(1);
13 DriveSync::~DriveSync()
15         done = 1;
16         Thread::join();
19 void DriveSync::run()
21         while(!done)
22         {
23                 sync();
24                 sleep(1);
25         }