Child classes:
Inherited Variables
Inherited Constants
Inherited Methods
Class Details
[ Top ]
Class Variables
$pid = 0
[line 37]
parent var for pid of fork
Tags:
- see - SONIC_thread::sonic_thread_run()
- see - sonic-daemon.php::sonic_daemon_main()
Type: integer
Overrides:
[ Top ]
$pid_child = 0
[line 45]
child var for pid of fork
Tags:
- see - SONIC_thread::sonic_thread_run()
- see - sonic-daemon.php::sonic_daemon_main()
Type: integer
Overrides:
[ Top ]
$thread_buffer_quiet = NULL
[line 75]
log only
if output is set as 'buffer' with loggin enabled, then surpress output to standard out aka STDOUT. default is NULL, setup via extended stream constructor over manual override by daemon afterwards.
Tags:
- see - ob_get_contents()
- see - SONIC_stream::sonic_stream_buffer()
- see - sonic-daemon.php::sonic_daemon_main()
Type: boolean
Overrides:
[ Top ]
$thread_log = NULL
[line 89]
log file
output log file when in threaded mode. when in rotate mode, daemon will catch ob contents and log instead of child. default is NULL, setup via extended stream constructor over manual override by daemon afterwards.
Tags:
- see - SONIC_thread::sonic_thread_run()
- see - sonic-daemon.php::sonic_daemon_main()
Type: string
Overrides:
[ Top ]
$thread_out = NULL
[line 61]
ob_start()
if set as 'buffer' ob flush and restart post fork. default is NULL, setup via extended stream constructor over manual override by daemon afterwards.
Tags:
- see - ob_end_clean()
- see - ob_get_contents()
- see - ob_start()
- see - SONIC_thread::sonic_thread_run()
- see - sonic-daemon.php::sonic_daemon_main()
Type: string
Overrides:
[ Top ]
Class Methods
sonic_thread_run
boolean sonic_thread_run(
)
[line 99]
fork entire program Memory and Execution space aka M.E.
forks execution at point, assign pid numbers of both processes and returns
Tags:
- return - pid number if in parents M.E. space, false in childs M.E. space, or dies on failure
Parameters:
[ Top ]