Thread::addFileTask
File threading
&reftitle.description;
public voidThread::addFileTask
stringfileName
mixed...globals
Adds a new file task to a Threads internal task queue.
&reftitle.parameters;
func
The name of the file to be threaded.
...globals
An optional list of arguments for the file. These arguments will be
placed into a $_THREAD superglobal, which will be made
available inside of the threaded file. All arguments will be serialised
(since they are being passed to another thread).
&reftitle.returnvalues;
No return value.
&reftitle.examples;
Adding a new file task to a thread
addFileTask('file.php', 1, 2, 3);
$thread->start();
$thread->join();
]]>
file.php:
&example.outputs;