pike.git / lib / modules / Process.pmod

version» Context lines:

pike.git/lib/modules/Process.pmod:217: Inside #if 0 //constant(Thread.Thread)
  #if 0 //constant(Thread.Thread)    // This is disabled by default since the callback alternative is    // much more lightweight - creating threads isn't cheap.    array threads = ({    thread_create( lambda() { gotstdout = mystdout->read(); } ),    thread_create( lambda() { gotstderr = mystderr->read(); } )    });       if (mystdin) {    threads += ({ -  thread_create(lambda(Stdio.File f) { f->write(stdin_str); }, mystdin ) +  thread_create(lambda(Stdio.File f) { f->write(stdin_str); f->close(); }, mystdin )    });    mystdin = 0;    }       exitcode = p->wait();    threads->wait();   #else    Pike.SmallBackend backend = Pike.SmallBackend();       mystdout->set_backend (backend);