Commit 3e113d4
committed
php#66: Add ZEND_ASYNC_SCHEDULER_LAUNCH() to TrueAsync public API
Expose async_scheduler_launch() function through the TrueAsync API to allow
extensions to explicitly initialize and start the scheduler before creating
coroutines. This is particularly useful for extensions that need deterministic
scheduler initialization timing.
Changes:
- Add zend_async_scheduler_launch_t function pointer type
- Add ZEND_ASYNC_SCHEDULER_LAUNCH() macro for scheduler initialization
- Register scheduler_launch_fn as first parameter in zend_async_scheduler_register()
- Update CHANGELOG.md with API addition in version 0.5.01 parent 3613ebd commit 3e113d4
2 files changed
+11
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
151 | 151 | | |
152 | 152 | | |
153 | 153 | | |
| 154 | + | |
154 | 155 | | |
155 | 156 | | |
156 | 157 | | |
| |||
261 | 262 | | |
262 | 263 | | |
263 | 264 | | |
| 265 | + | |
264 | 266 | | |
265 | 267 | | |
266 | 268 | | |
| |||
293 | 295 | | |
294 | 296 | | |
295 | 297 | | |
| 298 | + | |
296 | 299 | | |
297 | 300 | | |
298 | 301 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
19 | 19 | | |
20 | 20 | | |
21 | 21 | | |
22 | | - | |
| 22 | + | |
23 | 23 | | |
24 | | - | |
| 24 | + | |
25 | 25 | | |
26 | 26 | | |
27 | 27 | | |
| |||
250 | 250 | | |
251 | 251 | | |
252 | 252 | | |
| 253 | + | |
| 254 | + | |
253 | 255 | | |
254 | 256 | | |
255 | 257 | | |
| |||
1347 | 1349 | | |
1348 | 1350 | | |
1349 | 1351 | | |
| 1352 | + | |
1350 | 1353 | | |
1351 | 1354 | | |
1352 | 1355 | | |
| |||
1409 | 1412 | | |
1410 | 1413 | | |
1411 | 1414 | | |
| 1415 | + | |
1412 | 1416 | | |
1413 | 1417 | | |
1414 | 1418 | | |
| |||
1596 | 1600 | | |
1597 | 1601 | | |
1598 | 1602 | | |
| 1603 | + | |
| 1604 | + | |
1599 | 1605 | | |
1600 | 1606 | | |
1601 | 1607 | | |
| |||
0 commit comments