repo.or.cz
/
cinelerra_cv
/
mob.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
r370: Heroine Virutal's official release 1.2.1
[cinelerra_cv/mob.git]
/
hvirtual
/
cinelerra
/
drivesync.C
blob
3fe58fda794974be64a59d8ec59e631d93dae1c2
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
// Task switching too slow on alpha
22
while(!done)
23
{
24
sync();
25
sleep(1);
26
}
27
}