repo.or.cz
/
cinelerra_cv
/
ct.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
r1014: Enable horizontal scrolling with the mouse wheel by pressing Ctrl.
[cinelerra_cv/ct.git]
/
cinelerra
/
threadfork.h
blob
a383a1c6aca31f4c54f1b89de35847260130f80d
1
#ifndef THREADFORK_H
2
#define THREADFORK_H
3
4
5
// Construct command arguments, fork a background process and wait for it.
6
7
#include
"bcwindowbase.inc"
8
#include <pthread.h>
9
#include <stdio.h>
10
11
class
ThreadFork
12
{
13
public
:
14
ThreadFork
();
15
~
ThreadFork
();
16
17
FILE
*
get_stdin
();
18
void
run
();
19
void
start_command
(
char
*
command_line
,
int
pipe_stdin
);
20
21
static void
*
entrypoint
(
void
*
ptr
);
22
23
private
:
24
int
filedes
[
2
];
25
int
pid
;
26
pthread_t tid
;
27
char
**
arguments
;
28
char
path
[
BCTEXTLEN
];
29
int
total_arguments
;
30
FILE
*
stdin_fd
;
31
pthread_mutex_t start_lock
;
32
char
*
command_line
;
33
int
pipe_stdin
;
34
};
35
36
37
38
39
#endif