-
Notifications
You must be signed in to change notification settings - Fork 8
Expand file tree
/
Copy pathcpu_info.h
More file actions
28 lines (22 loc) · 1.2 KB
/
Copy pathcpu_info.h
File metadata and controls
28 lines (22 loc) · 1.2 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
/*
+----------------------------------------------------------------------+
| Copyright (c) The PHP Group |
+----------------------------------------------------------------------+
| This source file is subject to version 3.01 of the PHP license, |
| that is bundled with this package in the file LICENSE, and is |
| available through the world-wide-web at the following url: |
| https://www.php.net/license/3_01.txt |
+----------------------------------------------------------------------+
*/
#ifndef PHP_ASYNC_CPU_INFO_H
#define PHP_ASYNC_CPU_INFO_H
#include "php_async.h"
PHP_ASYNC_API extern zend_class_entry *async_ce_cpu_snapshot;
/* Initialise module-level state for cpu_usage(). Call from MINIT after the
* generated register_class_Async_CpuSnapshot() has populated async_ce_cpu_snapshot. */
void async_cpu_info_module_init(void);
/* Reset module-level state held for cpu_usage(). Call from RSHUTDOWN. */
void async_cpu_usage_reset_state(void);
/* Free module-level resources held for cpu_usage(). Call from MSHUTDOWN. */
void async_cpu_info_module_shutdown(void);
#endif /* PHP_ASYNC_CPU_INFO_H */