repo.or.cz
/
cinelerra_cv.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
r870: Merge 2.1:
[cinelerra_cv.git]
/
cinelerra
/
drivesync.C
blob
3f3d66693520583a870500b503c12775a15c7e52
1
#include "drivesync.h"
2
3
#include <stdio.h>
4
#include <unistd.h>
5
6
DriveSync::DriveSync()
7
: Thread()
8
{
9
done = 0;
10
set_synchronous(1);
11
}
12
13
DriveSync::~DriveSync()
14
{
15
done = 1;
16
Thread::join();
17
}
18
19
void DriveSync::run()
20
{
21
while(!done)
22
{
23
sync();
24
sleep(1);
25
}
26
}