File tree 3 files changed +9
-9
lines changed
3 files changed +9
-9
lines changed Original file line number Diff line number Diff line change @@ -58,10 +58,10 @@ define sw_hash_map_list
58
58
end
59
59
60
60
define co_list
61
- call swoole_coro_iterator_reset ()
61
+ call swoole_coroutine_iterator_reset ()
62
62
set $running = 1
63
63
while $running
64
- set $co = swoole_coro_iterator_each ()
64
+ set $co = swoole_coroutine_iterator_each ()
65
65
if $co
66
66
printf "coroutine %ld ", $co->cid
67
67
if $co->state == 0
@@ -83,7 +83,7 @@ define co_list
83
83
end
84
84
85
85
define co_bt
86
- if swoole_coro_count () == 0
86
+ if swoole_coroutine_count () == 0
87
87
printf "no coroutine is running\n"
88
88
end
89
89
____sw_executor_globals
111
111
112
112
define __co_bt
113
113
set $cid = (int)$arg0
114
- set $co = swoole_coro_get ($cid)
114
+ set $co = swoole_coroutine_get ($cid)
115
115
if $co
116
116
set $task = ('swoole::PHPContext' *) $co->get_task()
117
117
if $task
125
125
define co_status
126
126
printf "\t c_stack_size: %d\n", 'swoole::Coroutine::stack_size'
127
127
printf "\t active: %d\n", 'swoole::PHPCoroutine::active'
128
- printf "\t coro_num: %d\n", swoole_coro_count ()
128
+ printf "\t coro_num: %d\n", swoole_coroutine_count ()
129
129
printf "\t peak_coro_num: %d\n", 'swoole::Coroutine::peak_num'
130
130
printf "\t config: "
131
131
print 'swoole::PHPCoroutine::config'
Original file line number Diff line number Diff line change @@ -262,7 +262,7 @@ bool run(const CoroutineFunc &fn, void *arg = nullptr);
262
262
/* *
263
263
* for gdb
264
264
*/
265
- swoole::Coroutine *swoole_coro_iterator_each ();
266
- void swoole_coro_iterator_reset ();
265
+ swoole::Coroutine *swoole_coroutine_iterator_each ();
266
+ void swoole_coroutine_iterator_reset ();
267
267
swoole::Coroutine *swoole_coroutine_get (long cid);
268
268
size_t swoole_coroutine_count ();
Original file line number Diff line number Diff line change @@ -262,11 +262,11 @@ size_t swoole_coroutine_count() {
262
262
*/
263
263
static std::unordered_map<long , swoole::Coroutine *>::iterator _gdb_iterator;
264
264
265
- void swoole_coro_iterator_reset () {
265
+ void swoole_coroutine_iterator_reset () {
266
266
_gdb_iterator = swoole::Coroutine::coroutines.begin ();
267
267
}
268
268
269
- swoole::Coroutine *swoole_coro_iterator_each () {
269
+ swoole::Coroutine *swoole_coroutine_iterator_each () {
270
270
if (_gdb_iterator == swoole::Coroutine::coroutines.end ()) {
271
271
return nullptr ;
272
272
} else {
You can’t perform that action at this time.
0 commit comments