Process.php 2.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200
  1. <?php
  2. namespace Swoole;
  3. class Process
  4. {
  5. public const IPC_NOWAIT = 256;
  6. public const PIPE_MASTER = 1;
  7. public const PIPE_WORKER = 2;
  8. public const PIPE_READ = 3;
  9. public const PIPE_WRITE = 4;
  10. public $pipe;
  11. public $msgQueueId;
  12. public $msgQueueKey;
  13. public $pid;
  14. public $id;
  15. private $callback;
  16. public function __construct(callable $callback, $redirect_stdin_and_stdout = null, $pipe_type = null, $enable_coroutine = null)
  17. {
  18. }
  19. public function __destruct()
  20. {
  21. }
  22. /**
  23. * @return mixed
  24. */
  25. public static function wait($blocking = null)
  26. {
  27. }
  28. /**
  29. * @return mixed
  30. */
  31. public static function signal($signal_no, $callback)
  32. {
  33. }
  34. /**
  35. * @return mixed
  36. */
  37. public static function alarm($usec, $type = null)
  38. {
  39. }
  40. /**
  41. * @return mixed
  42. */
  43. public static function kill($pid, $signal_no = null)
  44. {
  45. }
  46. /**
  47. * @return mixed
  48. */
  49. public static function daemon($nochdir = null, $noclose = null, $pipes = null)
  50. {
  51. }
  52. /**
  53. * @return mixed
  54. */
  55. public function setPriority($which, $priority)
  56. {
  57. }
  58. /**
  59. * @return mixed
  60. */
  61. public function getPriority($which)
  62. {
  63. }
  64. /**
  65. * @return mixed
  66. */
  67. public function set(array $settings)
  68. {
  69. }
  70. /**
  71. * @return mixed
  72. */
  73. public function setTimeout($seconds)
  74. {
  75. }
  76. /**
  77. * @return mixed
  78. */
  79. public function setBlocking($blocking)
  80. {
  81. }
  82. /**
  83. * @return mixed
  84. */
  85. public function useQueue($key = null, $mode = null, $capacity = null)
  86. {
  87. }
  88. /**
  89. * @return mixed
  90. */
  91. public function statQueue()
  92. {
  93. }
  94. /**
  95. * @return mixed
  96. */
  97. public function freeQueue()
  98. {
  99. }
  100. /**
  101. * @return mixed
  102. */
  103. public function start()
  104. {
  105. }
  106. /**
  107. * @return mixed
  108. */
  109. public function write($data)
  110. {
  111. }
  112. /**
  113. * @return mixed
  114. */
  115. public function close()
  116. {
  117. }
  118. /**
  119. * @return mixed
  120. */
  121. public function read($size = null)
  122. {
  123. }
  124. /**
  125. * @return mixed
  126. */
  127. public function push($data)
  128. {
  129. }
  130. /**
  131. * @return mixed
  132. */
  133. public function pop($size = null)
  134. {
  135. }
  136. /**
  137. * @return mixed
  138. */
  139. public function exit($exit_code = null)
  140. {
  141. }
  142. /**
  143. * @return mixed
  144. */
  145. public function exec($exec_file, $args)
  146. {
  147. }
  148. /**
  149. * @return mixed
  150. */
  151. public function exportSocket()
  152. {
  153. }
  154. /**
  155. * @return mixed
  156. */
  157. public function name($process_name)
  158. {
  159. }
  160. }