Lines Matching refs:loop

170 		r = cb(&loop->loop, (void *) &_uv->uv.handle, ##__VA_ARGS__); \
193 #define PHP_UV_FETCH_UV_DEFAULT_LOOP(loop) \ argument
194 if (loop == NULL) { \
195 loop = php_uv_default_loop(); \
224 #define PHP_UV_FS_ASYNC(loop, func, ...) \ argument
225 error = uv_fs_##func(&loop->loop, (uv_fs_t*)&uv->uv.fs, __VA_ARGS__, php_uv_fs_cb); \
785 php_uv_loop_t *loop; local
793 UV_PARAM_OBJ(loop, php_uv_loop_t, uv_loop_ce) \
805 PHP_UV_FETCH_UV_DEFAULT_LOOP(loop); \
810 PHP_UV_FS_ASYNC(loop, command, __VA_ARGS__);
850 PHP_UV_FS_ASYNC(loop, fchmod, fd, mode);
897 PHP_UV_FS_ASYNC(loop, ftruncate, fd, offset);
910 PHP_UV_FS_ASYNC(loop, fdatasync, fd);
923 PHP_UV_FS_ASYNC(loop, fsync, fd);
936 PHP_UV_FS_ASYNC(loop, close, fd);
959 PHP_UV_FS_ASYNC(loop, fchown, fd, uid, gid);
977 UV_PARAM_OBJ(loop, php_uv_loop_t, uv_loop_ce)
1004 PHP_UV_FS_ASYNC(loop, fstat, fd);
1035 PHP_UV_FS_ASYNC(loop, futime, fd, utime, atime);
1069 PHP_UV_FS_ASYNC(loop, read, fd, &buf, 1, offset);
1087 PHP_UV_FS_ASYNC(loop, sendfile, in_fd, out_fd, offset, length);
1098 UV_PARAM_OBJ(loop, php_uv_loop_t, uv_loop_ce)
1113 PHP_UV_FS_ASYNC(loop, write, fd, &uv_fs_write_buf_t, 1, offset);
1245 uv_loop_t *loop = &loop_obj->loop; local
1247 uv_stop(loop); /* in case we haven't stopped the loop yet otherwise ... */
1248 uv_run(loop, UV_RUN_DEFAULT); /* invalidate the stop ;-) */
1251 uv_walk(loop, destruct_uv_loop_walk_cb, NULL);
1252 uv_run(loop, UV_RUN_DEFAULT);
1260 uv_loop_close(&loop_obj->loop);
1392 uv_stop(uv->uv.fs.loop);
1395 uv_stop(uv->uv.addrinfo.loop);
1398 uv_stop(uv->uv.work.loop);
1401 uv_stop(uv->uv.shutdown.handle->loop);
1404 uv_stop(uv->uv.udp_send.handle->loop);
1408 uv_stop(uv->uv.connect.handle->loop);
1411 uv_stop(uv->uv.handle.loop);
1601 uv_stop(uv->uv.handle.loop);
2574 struct { int *n; php_uv_loop_t *loop; } *data = arg; member
2578 php_uv_loop_t *loop = data->loop; local
2580 if (*data->n == loop->gc_buffer_size) {
2581 if (loop->gc_buffer_size == 0) {
2582 loop->gc_buffer_size = 16;
2584 loop->gc_buffer_size *= 2;
2586 loop->gc_buffer = erealloc(loop->gc_buffer, loop->gc_buffer_size * sizeof(zval));
2589 ZVAL_OBJ(loop->gc_buffer + (*data->n)++, &uv->std);
2596 php_uv_loop_t *loop = (php_uv_loop_t *) object; local
2599 php_uv_loop_t *loop = (php_uv_loop_t *) Z_OBJ_P(object);
2601 struct { int *n; php_uv_loop_t *loop; } data; member
2603 data.loop = loop;
2606 if (!PHP_UV_IS_DTORED(loop)) {
2607 uv_walk(&loop->loop, php_uv_loop_get_gc_walk_cb, &data);
2608 *table = loop->gc_buffer;
2611 return loop->std.properties;
2642 php_uv_loop_t *loop = emalloc(sizeof(php_uv_loop_t)); local
2643 zend_object_std_init(&loop->std, ce);
2644 loop->std.handlers = &uv_loop_handlers;
2646 uv_loop_init(&loop->loop);
2648 loop->gc_buffer_size = 0;
2649 loop->gc_buffer = NULL;
2651 return &loop->std;
2815 uv_loop_t *loop = &UV_G(default_loop)->loop; local
2818 uv_stop(loop); /* in case we longjmp()'ed ... */
2819 uv_run(loop, UV_RUN_DEFAULT); /* invalidate the stop ;-) */
2821 uv_walk(loop, destruct_uv_loop_walk_cb, NULL);
2822 uv_run(loop, UV_RUN_DEFAULT);
2823 uv_loop_close(loop);
2834 ZEND_ARG_INFO(0, loop)
2839 ZEND_ARG_INFO(0, loop)
2843 ZEND_ARG_INFO(0, loop)
2847 ZEND_ARG_INFO(0, loop)
2863 ZEND_ARG_INFO(0, loop)
2908 ZEND_ARG_INFO(0, loop)
2970 ZEND_ARG_INFO(0, loop)
2974 ZEND_ARG_INFO(0, loop)
2994 ZEND_ARG_INFO(0, loop)
3005 ZEND_ARG_INFO(0, loop)
3009 ZEND_ARG_INFO(0, loop)
3028 ZEND_ARG_INFO(0, loop)
3122 ZEND_ARG_INFO(0, loop)
3130 ZEND_ARG_INFO(0, loop)
3166 ZEND_ARG_INFO(0, loop)
3172 ZEND_ARG_INFO(0, loop)
3179 ZEND_ARG_INFO(0, loop)
3188 ZEND_ARG_INFO(0, loop)
3195 ZEND_ARG_INFO(0, loop)
3202 ZEND_ARG_INFO(0, loop)
3208 ZEND_ARG_INFO(0, loop)
3214 ZEND_ARG_INFO(0, loop)
3220 ZEND_ARG_INFO(0, loop)
3226 ZEND_ARG_INFO(0, loop)
3234 ZEND_ARG_INFO(0, loop)
3241 ZEND_ARG_INFO(0, loop)
3249 ZEND_ARG_INFO(0, loop)
3257 ZEND_ARG_INFO(0, loop)
3264 ZEND_ARG_INFO(0, loop)
3271 ZEND_ARG_INFO(0, loop)
3279 ZEND_ARG_INFO(0, loop)
3287 ZEND_ARG_INFO(0, loop)
3295 ZEND_ARG_INFO(0, loop)
3303 ZEND_ARG_INFO(0, loop)
3309 ZEND_ARG_INFO(0, loop)
3317 ZEND_ARG_INFO(0, loop)
3323 ZEND_ARG_INFO(0, loop)
3329 ZEND_ARG_INFO(0, loop)
3336 ZEND_ARG_INFO(0, loop)
3343 ZEND_ARG_INFO(0, loop)
3349 ZEND_ARG_INFO(0, loop)
3355 ZEND_ARG_INFO(0, loop)
3414 ZEND_ARG_INFO(0, loop)
3427 ZEND_ARG_INFO(0, loop)
3444 ZEND_ARG_INFO(0, loop)
3481 ZEND_ARG_INFO(0, loop)
3492 ZEND_ARG_INFO(0, loop)
3496 ZEND_ARG_INFO(0, loop)
3511 ZEND_ARG_INFO(0, loop)
3585 php_uv_loop_t *loop = NULL; local
3589 UV_PARAM_OBJ_NULL(loop, php_uv_loop_t, uv_loop_ce)
3592 PHP_UV_FETCH_UV_DEFAULT_LOOP(loop);
3593 uv_update_time(&loop->loop);
3615 php_uv_loop_t *loop = NULL; local
3620 UV_PARAM_OBJ_NULL(loop, php_uv_loop_t, uv_loop_ce)
3624 PHP_UV_FETCH_UV_DEFAULT_LOOP(loop);
3625 uv_run(&loop->loop, run_mode);
3633 php_uv_loop_t *loop = NULL; local
3637 UV_PARAM_OBJ_NULL(loop, php_uv_loop_t, uv_loop_ce)
3640 PHP_UV_FETCH_UV_DEFAULT_LOOP(loop);
3641 uv_stop(&loop->loop);
3649 php_uv_loop_t *loop = NULL; local
3654 UV_PARAM_OBJ_NULL(loop, php_uv_loop_t, uv_loop_ce)
3657 PHP_UV_FETCH_UV_DEFAULT_LOOP(loop);
3723 php_uv_loop_t *loop; local
3726 UV_PARAM_OBJ(loop, php_uv_loop_t, uv_loop_ce)
3729 if (loop != UV_G(default_loop)) {
3731 GC_FLAGS(&loop->std) |= IS_OBJ_DESTRUCTOR_CALLED;
3733 GC_ADD_FLAGS(&loop->std, IS_OBJ_DESTRUCTOR_CALLED);
3735 destruct_uv_loop(&loop->std);
3744 php_uv_loop_t *loop = NULL; local
3749 UV_PARAM_OBJ_NULL(loop, php_uv_loop_t, uv_loop_ce)
3752 PHP_UV_FETCH_UV_DEFAULT_LOOP(loop);
3753 now = uv_now(&loop->loop);
4094 php_uv_loop_t *loop = NULL; local
4099 UV_PARAM_OBJ_NULL(loop, php_uv_loop_t, uv_loop_ce)
4102 PHP_UV_FETCH_UV_DEFAULT_LOOP(loop);
4237 php_uv_loop_t *loop = NULL; local
4242 UV_PARAM_OBJ_NULL(loop, php_uv_loop_t, uv_loop_ce)
4245 PHP_UV_FETCH_UV_DEFAULT_LOOP(loop);
4315 php_uv_loop_t *loop; local
4324 UV_PARAM_OBJ(loop, php_uv_loop_t, uv_loop_ce)
4354 …uv_getaddrinfo(&loop->loop, &uv->uv.addrinfo, php_uv_getaddrinfo_cb, node->val, service->val, &hin…
4362 php_uv_loop_t *loop = NULL; local
4367 UV_PARAM_OBJ_NULL(loop, php_uv_loop_t, uv_loop_ce)
4370 PHP_UV_FETCH_UV_DEFAULT_LOOP(loop);
4389 php_uv_loop_t *loop = php_uv_default_loop(); local
4390 GC_ADDREF(&loop->std);
4391 RETURN_OBJ(&loop->std);
4408 php_uv_loop_t *loop = NULL; local
4413 UV_PARAM_OBJ_NULL(loop, php_uv_loop_t, uv_loop_ce)
4416 PHP_UV_FETCH_UV_DEFAULT_LOOP(loop);
4677 php_uv_loop_t *loop; local
4683 UV_PARAM_OBJ(loop, php_uv_loop_t, uv_loop_ce)
4691 PHP_UV_FETCH_UV_DEFAULT_LOOP(loop);
4692 uv_walk(&loop->loop, php_uv_walk_cb, NULL);
4726 php_uv_loop_t *loop = NULL; local
4731 UV_PARAM_OBJ_NULL(loop, php_uv_loop_t, uv_loop_ce)
4735 PHP_UV_FETCH_UV_DEFAULT_LOOP(loop);
5120 php_uv_loop_t *loop; local
5134 UV_PARAM_OBJ(loop, php_uv_loop_t, uv_loop_ce)
5148 PHP_UV_FETCH_UV_DEFAULT_LOOP(loop);
5255 ret = uv_spawn(&loop->loop, &proc->uv.process, &options);
5490 php_uv_loop_t *loop = NULL; local
5495 UV_PARAM_OBJ_NULL(loop, php_uv_loop_t, uv_loop_ce)
5498 PHP_UV_FETCH_UV_DEFAULT_LOOP(loop);
5567 php_uv_loop_t *loop = NULL; local
5572 UV_PARAM_OBJ_NULL(loop, php_uv_loop_t, uv_loop_ce)
5575 PHP_UV_FETCH_UV_DEFAULT_LOOP(loop);
5642 php_uv_loop_t *loop; local
5649 UV_PARAM_OBJ(loop, php_uv_loop_t, uv_loop_ce)
5653 PHP_UV_FETCH_UV_DEFAULT_LOOP(loop);
5683 php_uv_loop_t *loop; local
5690 UV_PARAM_OBJ(loop, php_uv_loop_t, uv_loop_ce)
5700 r = uv_queue_work(&loop->loop, &uv->uv.work, php_uv_work_cb, php_uv_after_work_cb);
5935 php_uv_loop_t *loop; local
5944 UV_PARAM_OBJ(loop, php_uv_loop_t, uv_loop_ce)
5951 PHP_UV_FETCH_UV_DEFAULT_LOOP(loop);
5972 php_uv_loop_t *loop; local
5978 UV_PARAM_OBJ(loop, php_uv_loop_t, uv_loop_ce)
5983 PHP_UV_FETCH_UV_DEFAULT_LOOP(loop);
6129 php_uv_loop_t *loop; local
6134 UV_PARAM_OBJ(loop, php_uv_loop_t, uv_loop_ce)
6138 PHP_UV_FETCH_UV_DEFAULT_LOOP(loop);
6212 php_uv_loop_t *loop = NULL; local
6217 UV_PARAM_OBJ_NULL(loop, php_uv_loop_t, uv_loop_ce)
6220 PHP_UV_FETCH_UV_DEFAULT_LOOP(loop);