mirror of
https://github.com/isc-projects/bind9.git
synced 2026-02-27 03:51:16 -05:00
Properly name the loop->mctx
The per loop memory context were unnamed, properly name them as 'loop<tid>'.
This commit is contained in:
parent
2c37b3f01b
commit
9d2f22e666
1 changed files with 4 additions and 1 deletions
|
|
@ -209,7 +209,7 @@ queue_cb(uv_async_t *handle) {
|
|||
}
|
||||
|
||||
static void
|
||||
loop_init(isc_loop_t *loop, isc_loopmgr_t *loopmgr, size_t tid) {
|
||||
loop_init(isc_loop_t *loop, isc_loopmgr_t *loopmgr, uint32_t tid) {
|
||||
*loop = (isc_loop_t){
|
||||
.tid = tid,
|
||||
.loopmgr = loopmgr,
|
||||
|
|
@ -234,7 +234,10 @@ loop_init(isc_loop_t *loop, isc_loopmgr_t *loopmgr, size_t tid) {
|
|||
UV_RUNTIME_CHECK(uv_async_init, r);
|
||||
uv_handle_set_data(&loop->destroy_trigger, loop);
|
||||
|
||||
char name[16];
|
||||
snprintf(name, sizeof(name), "loop-%08" PRIx32, tid);
|
||||
isc_mem_create(&loop->mctx);
|
||||
isc_mem_setname(loop->mctx, name);
|
||||
|
||||
isc_mutex_init(&loop->queue_lock);
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue