mirror of
https://github.com/game-stop/veejay.git
synced 2026-01-10 08:55:27 +01:00
refactor tasks
This commit is contained in:
@@ -188,7 +188,7 @@ int avhelper_set_num_decoders() {
|
||||
}
|
||||
else {
|
||||
veejay_msg(VEEJAY_MSG_DEBUG, "env VEEJAY_NUM_DECODE_THREADS not set!");
|
||||
int n = task_num_cpus();
|
||||
int n = vj_task_get_num_cpus();
|
||||
if( n > 1 )
|
||||
n_threads = 2;
|
||||
if( n > 3 )
|
||||
|
||||
@@ -379,8 +379,6 @@ int veejay_free(veejay_t * info)
|
||||
|
||||
veejay_playback_close(info);
|
||||
|
||||
vj_mem_threaded_stop();
|
||||
|
||||
vj_event_destroy(info);
|
||||
|
||||
vj_tag_free();
|
||||
@@ -3055,7 +3053,7 @@ int veejay_main(veejay_t * info)
|
||||
/* Flush the Linux File buffers to disk */
|
||||
//sync();
|
||||
|
||||
if( task_num_cpus() > 1 ) {
|
||||
if( vj_task_get_num_cpus() > 1 ) {
|
||||
CPU_ZERO( &cpuset );
|
||||
CPU_SET ( 0, &cpuset ); /* run on the first cpu */
|
||||
|
||||
|
||||
@@ -838,7 +838,6 @@ int main(int argc, char **argv)
|
||||
|
||||
info = veejay_malloc();
|
||||
if (!info) {
|
||||
vj_mem_threaded_stop();
|
||||
return 1;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user