fiber.h 1.4 KB

1234567891011121314151617181920212223242526272829303132333435363738
  1. /*
  2. +----------------------------------------------------------------------+
  3. | Copyright (c) The PHP Group |
  4. +----------------------------------------------------------------------+
  5. | This source file is subject to version 3.01 of the PHP license, |
  6. | that is bundled with this package in the file LICENSE, and is |
  7. | available through the world-wide-web at the following url: |
  8. | https://www.php.net/license/3_01.txt |
  9. | If you did not receive a copy of the PHP license and are unable to |
  10. | obtain it through the world-wide-web, please send a note to |
  11. | license@php.net so we can mail you a copy immediately. |
  12. +----------------------------------------------------------------------+
  13. | Authors: Aaron Piotrowski <aaron@trowski.com> |
  14. +----------------------------------------------------------------------+
  15. */
  16. #ifndef ZEND_TEST_FIBER_H
  17. #define ZEND_TEST_FIBER_H
  18. #include "zend_fibers.h"
  19. typedef struct _zend_test_fiber zend_test_fiber;
  20. struct _zend_test_fiber {
  21. zend_object std;
  22. uint8_t flags;
  23. zend_fiber_context context;
  24. zend_fiber_context *caller;
  25. zend_fiber_context *previous;
  26. zend_test_fiber *target;
  27. zend_fcall_info fci;
  28. zend_fcall_info_cache fci_cache;
  29. zval result;
  30. };
  31. void zend_test_fiber_init(void);
  32. #endif